Added missing session state changes.
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user