summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/MraProto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-21 18:36:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-21 18:36:10 +0000
commit01b1b443b89cdff245c23c03af37718c7d0c90cd (patch)
tree2f058638ff8890cddf46373ef2cd624962fadc84 /protocols/MRA/src/MraProto.cpp
parent530ca4410d99e166f4bbf1d6ba23e348a53d4743 (diff)
fix for closing thread handles in MRA
git-svn-id: http://svn.miranda-ng.org/main/trunk@4152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/MraProto.cpp')
-rw-r--r--protocols/MRA/src/MraProto.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/MRA/src/MraProto.cpp b/protocols/MRA/src/MraProto.cpp
index 1afc9c122a..6c7066bc3f 100644
--- a/protocols/MRA/src/MraProto.cpp
+++ b/protocols/MRA/src/MraProto.cpp
@@ -136,6 +136,7 @@ int CMraProto::OnPreShutdown(WPARAM, LPARAM)
if (hThreadWorker) {
if (IsThreadAlive(hThreadWorker))
WaitForSingleObjectEx(hThreadWorker, (WAIT_FOR_THREAD_TIMEOUT*1000), FALSE);
+ CloseHandle(hThreadWorker);
hThreadWorker = NULL;
}