From f888115632a98c68d859be34395a572ac81b3d09 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 13 Jul 2012 17:45:11 +0000 Subject: fix for ad hoc queries git-svn-id: http://svn.miranda-ng.org/main/trunk@952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/jabber_rc.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols') 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; } -- cgit v1.2.3