rearranged the deletion orders of clientlistener and server #4313

This commit is contained in:
XinyuHou 2015-01-28 17:34:19 +00:00
parent 4e42b9fdbd
commit d15c99f41d

View File

@ -338,8 +338,8 @@ void
ServerApp::stopServer()
{
if (m_serverState == kStarted) {
closeClientListener(m_listener);
closeServer(m_server);
closeClientListener(m_listener);
m_server = NULL;
m_listener = NULL;
m_serverState = kInitialized;