diff --git a/clientgui/AsyncRPC.cpp b/clientgui/AsyncRPC.cpp index 1d846bc300..0a78c99b76 100644 --- a/clientgui/AsyncRPC.cpp +++ b/clientgui/AsyncRPC.cpp @@ -152,7 +152,7 @@ void *RPCThread::Entry() { wxPostEvent( wxTheApp, RPC_done_event ); } -#ifndef __WXMSW__ +#ifndef __WXMSW__ // Use a critical section to prevent a crash during // manager shutdown due to a rare race condition m_Doc->m_critsect.Enter(); @@ -438,7 +438,7 @@ int CMainDocument::RequestRPC(ASYNC_RPC_REQUEST& request, bool hasPriority) { request.isActive = false; current_rpc_request = request; current_rpc_request.isActive = true; -#ifndef __WXMSW__ +#ifndef __WXMSW__ m_RPCThread->Resume(); #endif } @@ -711,7 +711,7 @@ void CMainDocument::OnRPCComplete(CRPCFinishedEvent& event) { RPC_requests[0].isActive = false; current_rpc_request = RPC_requests[0]; current_rpc_request.isActive = true; -#ifndef __WXMSW__ +#ifndef __WXMSW__ m_RPCThread->Resume(); #endif }