summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/JabberG/jabber_rc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/JabberG/jabber_rc.cpp b/protocols/JabberG/jabber_rc.cpp
index 789b3eef74..dcfaaaefe6 100644
--- a/protocols/JabberG/jabber_rc.cpp
+++ b/protocols/JabberG/jabber_rc.cpp
@@ -677,9 +677,8 @@ int CJabberProto::AdhocLockWSHandler( HXML, CJabberIqInfo* pInfo, CJabberAdhocSe
return JABBER_ADHOC_HANDLER_STATUS_REMOVE_SESSION;
}
-static void __cdecl JabberQuitMirandaIMThread( void* )
+static void __stdcall JabberQuitMirandaIMThread( void* )
{
- SleepEx( 2000, TRUE );
JCallService( "CloseAction", 0, 0 );
}
@@ -722,7 +721,7 @@ int CJabberProto::AdhocQuitMirandaHandler( HXML, CJabberIqInfo* pInfo, CJabberAd
fieldNode = xmlGetChildByTag( xNode,"field", "var", _T("allow-shutdown"));
if ( fieldNode && (valueNode = xmlGetChild( fieldNode , "value" )))
if ( xmlGetText( valueNode ) && _ttoi( xmlGetText( valueNode )))
- mir_forkthread( JabberQuitMirandaIMThread, NULL );
+ CallFunctionAsync(JabberQuitMirandaIMThread, 0);
return JABBER_ADHOC_HANDLER_STATUS_COMPLETED;
}