summaryrefslogtreecommitdiffstats
path: root/source/cServer.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-19 18:15:35 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-19 18:15:35 +0100
commit2786ad306abe7487e3fc6bed1123ca8ebc2c3198 (patch)
tree58254cedb48cb33431699cce729dc7c67bd20779 /source/cServer.cpp
parentFixed a warning in a Release build (diff)
downloadcuberite-2786ad306abe7487e3fc6bed1123ca8ebc2c3198.tar
cuberite-2786ad306abe7487e3fc6bed1123ca8ebc2c3198.tar.gz
cuberite-2786ad306abe7487e3fc6bed1123ca8ebc2c3198.tar.bz2
cuberite-2786ad306abe7487e3fc6bed1123ca8ebc2c3198.tar.lz
cuberite-2786ad306abe7487e3fc6bed1123ca8ebc2c3198.tar.xz
cuberite-2786ad306abe7487e3fc6bed1123ca8ebc2c3198.tar.zst
cuberite-2786ad306abe7487e3fc6bed1123ca8ebc2c3198.zip
Diffstat (limited to 'source/cServer.cpp')
-rw-r--r--source/cServer.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/cServer.cpp b/source/cServer.cpp
index 39b74464d..ceee46fa0 100644
--- a/source/cServer.cpp
+++ b/source/cServer.cpp
@@ -269,13 +269,17 @@ cServer::cServer()
cServer::~cServer()
{
- if( m_pState->SListenClient ) m_pState->SListenClient.CloseSocket();
+ // TODO: Shut down the server gracefully
+ if ( m_pState->SListenClient )
+ {
+ m_pState->SListenClient.CloseSocket();
+ }
m_pState->SListenClient = 0;
m_pState->bStopListenThread = true;
- delete m_pState->pListenThread; m_pState->pListenThread = 0;
+ delete m_pState->pListenThread; m_pState->pListenThread = NULL;
m_pState->bStopTickThread = true;
- delete m_pState->pTickThread; m_pState->pTickThread = 0;
+ delete m_pState->pTickThread; m_pState->pTickThread = NULL;
delete m_pState;
}