mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
Fix an RPC server startup race introduced by me.
This commit is contained in:
parent
e483b0cf9b
commit
ff4ba9573c
1 changed files with 4 additions and 1 deletions
|
@ -846,8 +846,11 @@ RPC_STATUS WINAPI RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid,
|
||||||
LeaveCriticalSection(&server_cs);
|
LeaveCriticalSection(&server_cs);
|
||||||
|
|
||||||
if (sif->Flags & RPC_IF_AUTOLISTEN) {
|
if (sif->Flags & RPC_IF_AUTOLISTEN) {
|
||||||
/* well, start listening, I think... */
|
|
||||||
RPCRT4_start_listen(TRUE);
|
RPCRT4_start_listen(TRUE);
|
||||||
|
|
||||||
|
/* make sure server is actually listening on the interface before
|
||||||
|
* returning */
|
||||||
|
RPCRT4_sync_with_server_thread();
|
||||||
}
|
}
|
||||||
|
|
||||||
return RPC_S_OK;
|
return RPC_S_OK;
|
||||||
|
|
Loading…
Reference in a new issue