From 67f2d89c164c7adccdee065da1caac319d528b50 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Jun 2012 16:37:08 +0000 Subject: - yet another crash fix on exit; - events speed-up - quick ICQ exit git-svn-id: http://svn.miranda-ng.org/main/trunk@687 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/icq_proto.cpp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'protocols/IcqOscarJ/icq_proto.cpp') diff --git a/protocols/IcqOscarJ/icq_proto.cpp b/protocols/IcqOscarJ/icq_proto.cpp index 342153e976..ce46d9f719 100644 --- a/protocols/IcqOscarJ/icq_proto.cpp +++ b/protocols/IcqOscarJ/icq_proto.cpp @@ -22,24 +22,16 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. // // ----------------------------------------------------------------------------- -// -// File name : $URL: http://miranda.googlecode.com/svn/trunk/miranda/protocols/IcqOscarJ/icq_proto.cpp $ -// Revision : $Revision: 14148 $ -// Last change on : $Date: 2012-03-10 00:01:01 +0200 (Сб, 10 мар 2012) $ -// Last change by : $Author: george.hazan $ -// -// DESCRIPTION: +// DESCRIPTION: // // Protocol Interface Implementation // // ----------------------------------------------------------------------------- - #include "icqoscar.h" #include "m_icolib.h" #include "m_updater.h" - extern PLUGININFOEX pluginInfo; extern HANDLE hExtraXStatus; @@ -249,15 +241,6 @@ CIcqProto::~CIcqProto() m_bXStatusEnabled = 10; // block clist changing m_bMoodsEnabled = 10; - // Make sure all connections are closed - CloseContactDirectConns(NULL); - while ( true ) { - if ( !directConns.getCount()) - break; - - Sleep(10); /* yeah, ugly */ - } - // Serv-list update board clean-up FlushServerIDs(); /// TODO: make sure server-list handler thread is not running @@ -382,6 +365,9 @@ int CIcqProto::OnPreShutdown(WPARAM wParam,LPARAM lParam) { // all threads should be terminated here icq_InfoUpdateCleanup(); + + // Make sure all connections are closed + CloseContactDirectConns(NULL); return 0; } -- cgit v1.2.3