diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-29 16:37:08 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-29 16:37:08 +0000 |
commit | 67f2d89c164c7adccdee065da1caac319d528b50 (patch) | |
tree | 96d5d1d87776a9fa48fd8fea33312d35aa6b1d77 /protocols/IcqOscarJ/icq_infoupdate.cpp | |
parent | c1840425166576b1cf187076a9344a78a20375b6 (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_infoupdate.cpp')
-rw-r--r-- | protocols/IcqOscarJ/icq_infoupdate.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/protocols/IcqOscarJ/icq_infoupdate.cpp b/protocols/IcqOscarJ/icq_infoupdate.cpp index dd73af7ded..a5bf1656a7 100644 --- a/protocols/IcqOscarJ/icq_infoupdate.cpp +++ b/protocols/IcqOscarJ/icq_infoupdate.cpp @@ -22,18 +22,11 @@ // 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_infoupdate.cpp $
-// Revision : $Revision: 13091 $
-// Last change on : $Date: 2010-11-01 21:07:18 +0200 (Пн, 01 ноя 2010) $
-// Last change by : $Author: george.hazan $
-//
-// DESCRIPTION:
+// DESCRIPTION:
//
// Background thread for automatic update of user details
//
// -----------------------------------------------------------------------------
-
#include "icqoscar.h"
@@ -401,13 +394,14 @@ void __cdecl CIcqProto::InfoUpdateThread( void* ) NetLog_Server("%s thread ended.", "Info-Update");
}
-
// Clean up before exit
void CIcqProto::icq_InfoUpdateCleanup(void)
{
bInfoUpdateRunning = FALSE;
SetEvent(hInfoQueueEvent); // break queue loop
- if (hInfoThread) ICQWaitForSingleObject(hInfoThread, INFINITE, TRUE);
+ if (hInfoThread)
+ ICQWaitForSingleObject(hInfoThread, INFINITE, TRUE);
+
// Uninit mutex
SAFE_DELETE(&infoUpdateMutex);
CloseHandle(hInfoQueueEvent);
|