diff options
-rw-r--r-- | src/client.cpp | 2 | ||||
-rw-r--r-- | src/net/ipc.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index d379d8917..0dd0b7326 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -627,6 +627,8 @@ void Client::gameClear() delete2(assertListener); + if (ipc) + ipc->stop(); eventsManager.shutdown(); WindowManager::deleteWindows(); if (windowContainer) diff --git a/src/net/ipc.cpp b/src/net/ipc.cpp index c694417c9..e77cad713 100644 --- a/src/net/ipc.cpp +++ b/src/net/ipc.cpp @@ -145,6 +145,7 @@ int IPC::acceptLoop(void *ptr) TcpNet::closeSocket(sock); } TcpNet::closeSocket(ipc1->mSocket); + TcpNet::freeSocketSet(set); ipc1->mSocket = nullptr; ipc1->mThread = nullptr; return 0; |