services: Call RpcMgmtWaitServerListen in RPC_Stop.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-04-10 14:27:58 +02:00 committed by Alexandre Julliard
parent f8e9cdcaeb
commit 69608af0a9
1 changed files with 1 additions and 0 deletions

View File

@ -1958,6 +1958,7 @@ void RPC_Stop(void)
{
RpcMgmtStopServerListening(NULL);
RpcServerUnregisterIf(svcctl_v2_0_s_ifspec, NULL, TRUE);
RpcMgmtWaitServerListen();
CloseThreadpoolCleanupGroupMembers(cleanup_group, TRUE, NULL);
CloseThreadpoolCleanupGroup(cleanup_group);