Added missing session state changes.

This commit is contained in:
Markus Makela
2015-06-23 11:49:27 +03:00
parent 2cfc93838e
commit 3de7798fac

View File

@ -535,7 +535,10 @@ int listeners = 0;
while (port)
{
if(poll_remove_dcb(port->listener) == 0)
{
port->listener->session->state = SESSION_STATE_LISTENER_STOPPED;
listeners++;
}
port = port->next;
}
service->state = SERVICE_STATE_STOPPED;
@ -561,7 +564,10 @@ int listeners = 0;
while (port)
{
if(poll_add_dcb(port->listener) == 0)
{
port->listener->session->state = SESSION_STATE_LISTENER;
listeners++;
}
port = port->next;
}
service->state = SERVICE_STATE_STARTED;