summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-13 17:45:11 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-13 17:45:11 +0000
commitf888115632a98c68d859be34395a572ac81b3d09 (patch)
treed27e4b09f84e814401b0b056c56ae9c2b434b4bd
parent3b35c8c1d13338cc808f301d105623b691d8c517 (diff)
fix for ad hoc queries
git-svn-id: http://svn.miranda-ng.org/main/trunk@952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-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;
}