summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/fam_03buddy.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-14 08:56:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-14 08:56:46 +0000
commit7a917d3884e32266bd8645287c558fe095e986a3 (patch)
tree2838aa7030a2dee67dd19da05aa62c86bd99aba4 /protocols/IcqOscarJ/fam_03buddy.cpp
parentc597d66aa12a6cc27c6b0ffb87d8e63a63a86846 (diff)
fix for killing ICQ threads on exit
git-svn-id: http://svn.miranda-ng.org/main/trunk@962 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/fam_03buddy.cpp')
-rw-r--r--protocols/IcqOscarJ/fam_03buddy.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/fam_03buddy.cpp b/protocols/IcqOscarJ/fam_03buddy.cpp
index 91f59147df..caa41d966c 100644
--- a/protocols/IcqOscarJ/fam_03buddy.cpp
+++ b/protocols/IcqOscarJ/fam_03buddy.cpp
@@ -195,10 +195,12 @@ void CIcqProto::handleUserOnline(BYTE *buf, WORD wLen, serverthread_info *info)
unpackWord(&buf, &wTLVCount);
wLen -= 2;
- // Determine contact
- HANDLE hContact = HContactFromUID(dwUIN, szUID, NULL);
+ // notify that the set status note & mood process is finished
+ if (m_hNotifyNameInfoEvent)
+ SetEvent(m_hNotifyNameInfoEvent);
// Ignore status notification if the user is not already on our list
+ HANDLE hContact = HContactFromUID(dwUIN, szUID, NULL);
if (hContact == INVALID_HANDLE_VALUE)
{
#ifdef _DEBUG
@@ -578,7 +580,6 @@ void CIcqProto::handleUserOnline(BYTE *buf, WORD wLen, serverthread_info *info)
}
}
-
void CIcqProto::handleUserOffline(BYTE *buf, WORD wLen)
{
DWORD dwUIN;