aboutsummaryrefslogtreecommitdiff
path: root/src/stable/multiserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable/multiserver.cpp')
-rw-r--r--src/stable/multiserver.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stable/multiserver.cpp b/src/stable/multiserver.cpp
index 6fd7ff3..c9e86cf 100644
--- a/src/stable/multiserver.cpp
+++ b/src/stable/multiserver.cpp
@@ -11,6 +11,8 @@
11 11
12#include "bu/config.h" 12#include "bu/config.h"
13 13
14#include "bu/sio.h"
15
14Bu::MultiServer::MultiServer() 16Bu::MultiServer::MultiServer()
15{ 17{
16} 18}
@@ -40,7 +42,9 @@ void Bu::MultiServer::onNewConnection( Bu::Client *pClient, int nPort )
40 42
41void Bu::MultiServer::onClosedConnection( Bu::Client *pClient ) 43void Bu::MultiServer::onClosedConnection( Bu::Client *pClient )
42{ 44{
43 delete pClient->getProtocol(); 45 Bu::Protocol *pProto = pClient->getProtocol();
46 pClient->clearProtocol();
47 delete pProto;
44} 48}
45 49
46void Bu::MultiServer::shutdown() 50void Bu::MultiServer::shutdown()