diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-28 13:49:05 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-28 13:49:05 +0000 |
commit | 657291051bb286ad25e1f27fcb333c340d4e2b02 (patch) | |
tree | 90760339df372de76ac5f106d99e0814eb4fa957 /protocols/IcqOscarJ/src/icq_proto.cpp | |
parent | c0fa453ab5a1a0b36f4bdd7103afbe0a566ccf17 (diff) |
we don't wait for the ICQ status change anymore on exit
git-svn-id: http://svn.miranda-ng.org/main/trunk@5169 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_proto.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp index 95ba89e838..f25d21827a 100644 --- a/protocols/IcqOscarJ/src/icq_proto.cpp +++ b/protocols/IcqOscarJ/src/icq_proto.cpp @@ -1897,21 +1897,8 @@ int __cdecl CIcqProto::SetStatus(int iNewStatus) if (icqOnline())
{ // set offline status note (otherwise the old will remain)
char *szOfflineNote = PrepareStatusNote(nNewStatus);
-
- // Create unnamed event to wait until the status note change process is completed
- m_hNotifyNameInfoEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
-
- int bNoteChanged = SetStatusNote(szOfflineNote, 0, FALSE);
-
+ SetStatusNote(szOfflineNote, 0, FALSE);
SAFE_FREE(&szOfflineNote);
-
- // Note was changed, wait until the process is over
- if (bNoteChanged)
- ICQWaitForSingleObject(m_hNotifyNameInfoEvent, 4000, TRUE);
-
- // Release the event
- CloseHandle(m_hNotifyNameInfoEvent);
- m_hNotifyNameInfoEvent = NULL;
}
m_iDesiredStatus = nNewStatus;
|