summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/icq_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-29 16:37:08 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-29 16:37:08 +0000
commit67f2d89c164c7adccdee065da1caac319d528b50 (patch)
tree96d5d1d87776a9fa48fd8fea33312d35aa6b1d77 /protocols/IcqOscarJ/icq_proto.cpp
parentc1840425166576b1cf187076a9344a78a20375b6 (diff)
- 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
Diffstat (limited to 'protocols/IcqOscarJ/icq_proto.cpp')
-rw-r--r--protocols/IcqOscarJ/icq_proto.cpp22
1 files changed, 4 insertions, 18 deletions
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;
}