summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_rates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_rates.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icq_rates.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/IcqOscarJ/src/icq_rates.cpp b/protocols/IcqOscarJ/src/icq_rates.cpp
index a00db8f212..32fa47d0a1 100644
--- a/protocols/IcqOscarJ/src/icq_rates.cpp
+++ b/protocols/IcqOscarJ/src/icq_rates.cpp
@@ -310,6 +310,10 @@ struct rate_delay_args
void __cdecl CIcqProto::rateDelayThread(rate_delay_args *pArgs)
{
SleepEx(pArgs->nDelay, TRUE);
+
+ if (g_bTerminated)
+ return;
+
(pArgs->queue->*pArgs->delaycode)();
SAFE_FREE((void**)&pArgs);
}