rearranged the deletion orders of clientlistener and server #4313
This commit is contained in:
parent
4e42b9fdbd
commit
d15c99f41d
|
@ -338,8 +338,8 @@ void
|
||||||
ServerApp::stopServer()
|
ServerApp::stopServer()
|
||||||
{
|
{
|
||||||
if (m_serverState == kStarted) {
|
if (m_serverState == kStarted) {
|
||||||
closeClientListener(m_listener);
|
|
||||||
closeServer(m_server);
|
closeServer(m_server);
|
||||||
|
closeClientListener(m_listener);
|
||||||
m_server = NULL;
|
m_server = NULL;
|
||||||
m_listener = NULL;
|
m_listener = NULL;
|
||||||
m_serverState = kInitialized;
|
m_serverState = kInitialized;
|
||||||
|
|
Loading…
Reference in New Issue