Added missing session state changes.
This commit is contained in:
@ -535,7 +535,10 @@ int listeners = 0;
|
|||||||
while (port)
|
while (port)
|
||||||
{
|
{
|
||||||
if(poll_remove_dcb(port->listener) == 0)
|
if(poll_remove_dcb(port->listener) == 0)
|
||||||
|
{
|
||||||
|
port->listener->session->state = SESSION_STATE_LISTENER_STOPPED;
|
||||||
listeners++;
|
listeners++;
|
||||||
|
}
|
||||||
port = port->next;
|
port = port->next;
|
||||||
}
|
}
|
||||||
service->state = SERVICE_STATE_STOPPED;
|
service->state = SERVICE_STATE_STOPPED;
|
||||||
@ -561,7 +564,10 @@ int listeners = 0;
|
|||||||
while (port)
|
while (port)
|
||||||
{
|
{
|
||||||
if(poll_add_dcb(port->listener) == 0)
|
if(poll_add_dcb(port->listener) == 0)
|
||||||
|
{
|
||||||
|
port->listener->session->state = SESSION_STATE_LISTENER;
|
||||||
listeners++;
|
listeners++;
|
||||||
|
}
|
||||||
port = port->next;
|
port = port->next;
|
||||||
}
|
}
|
||||||
service->state = SERVICE_STATE_STARTED;
|
service->state = SERVICE_STATE_STARTED;
|
||||||
|
|||||||
Reference in New Issue
Block a user