diff options
author | Mattes D <github@xoft.cz> | 2015-01-27 13:58:46 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-27 14:53:39 +0100 |
commit | 79dee9bb70a093e163fe64b1a538973147ca1123 (patch) | |
tree | f054e26334e3bab0a2cdce989fb2b1f075b67961 /src/OSSupport | |
parent | Fixed server failure to open any port not aborting the server. (diff) | |
download | cuberite-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 'src/OSSupport')
-rw-r--r-- | src/OSSupport/ServerHandleImpl.cpp | 3 |
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); } |