diff options
Diffstat (limited to '')
-rw-r--r-- | src/stable/multiserver.cpp | 6 |
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 | |||
14 | Bu::MultiServer::MultiServer() | 16 | Bu::MultiServer::MultiServer() |
15 | { | 17 | { |
16 | } | 18 | } |
@@ -40,7 +42,9 @@ void Bu::MultiServer::onNewConnection( Bu::Client *pClient, int nPort ) | |||
40 | 42 | ||
41 | void Bu::MultiServer::onClosedConnection( Bu::Client *pClient ) | 43 | void 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 | ||
46 | void Bu::MultiServer::shutdown() | 50 | void Bu::MultiServer::shutdown() |