[EVENTLOG]

- Stop listening to RPC messages when receiving SERVICE_CONTROL_STOP

svn path=/trunk/; revision=53267
This commit is contained in:
Jérôme Gardou 2011-08-15 20:55:07 +00:00
parent e0cbe302ee
commit 3d69d4ecf6
2 changed files with 4 additions and 0 deletions

View file

@ -63,6 +63,8 @@ ServiceControlHandler(DWORD dwControl,
{
case SERVICE_CONTROL_STOP:
DPRINT(" SERVICE_CONTROL_STOP received\n");
/* Stop listening to incoming RPC messages */
RpcMgmtStopServerListening(NULL);
UpdateServiceStatus(SERVICE_STOPPED);
return ERROR_SUCCESS;

View file

@ -3043,6 +3043,8 @@ ServiceControlHandler(DWORD dwControl,
{
case SERVICE_CONTROL_STOP:
DPRINT1(" SERVICE_CONTROL_STOP received\n");
/* Stop listening to RPC Messages */
RpcMgmtStopServerListening(NULL);
UpdateServiceStatus(SERVICE_STOPPED);
return ERROR_SUCCESS;