summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-27 13:58:46 +0100
committerMattes D <github@xoft.cz>2015-01-27 14:53:39 +0100
commit79dee9bb70a093e163fe64b1a538973147ca1123 (patch)
treef054e26334e3bab0a2cdce989fb2b1f075b67961
parentFixed server failure to open any port not aborting the server. (diff)
downloadcuberite-79dee9bb70a093e163fe64b1a538973147ca1123.tar
cuberite-79dee9bb70a093e163fe64b1a538973147ca1123.tar.gz
cuberite-79dee9bb70a093e163fe64b1a538973147ca1123.tar.bz2
cuberite-79dee9bb70a093e163fe64b1a538973147ca1123.tar.lz
cuberite-79dee9bb70a093e163fe64b1a538973147ca1123.tar.xz
cuberite-79dee9bb70a093e163fe64b1a538973147ca1123.tar.zst
cuberite-79dee9bb70a093e163fe64b1a538973147ca1123.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/ServerHandleImpl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/OSSupport/ServerHandleImpl.cpp b/src/OSSupport/ServerHandleImpl.cpp
index 5244f3fd2..5fc5662e1 100644
--- a/src/OSSupport/ServerHandleImpl.cpp
+++ b/src/OSSupport/ServerHandleImpl.cpp
@@ -83,6 +83,9 @@ void cServerHandleImpl::Close(void)
// Remove the ptr to self, so that the object may be freed:
m_SelfPtr.reset();
+
+ // Remove self from cNetworkSingleton:
+ cNetworkSingleton::Get().RemoveServer(this);
}