summaryrefslogtreecommitdiff
path: root/plugins/Ping/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-09-09 22:24:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-09-09 22:24:07 +0300
commit23f0b751b57b2dd9f6e912cec92364ff59b864b2 (patch)
tree9b38146c3602b5300856d00bedfc248bce5c7da0 /plugins/Ping/src
parent77a3554616362939d78649fd257f65e464312e68 (diff)
fix for a crappy ::GetCurrentThread call that breaks all Wait* functions
Diffstat (limited to 'plugins/Ping/src')
-rw-r--r--plugins/Ping/src/pingthread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Ping/src/pingthread.cpp b/plugins/Ping/src/pingthread.cpp
index a57266e6f1..9921eff5d2 100644
--- a/plugins/Ping/src/pingthread.cpp
+++ b/plugins/Ping/src/pingthread.cpp
@@ -74,7 +74,7 @@ void SetProtoStatus(wchar_t *pszLabel, char *pszProto, int if_status, int new_st
void __cdecl sttCheckStatusThreadProc(void*)
{
- MThreadHandle threadLock(status_update_thread);
+ MThreadLock threadLock(status_update_thread);
clock_t start_t = clock(), end_t;
while (!get_thread_finished()) {
@@ -904,7 +904,7 @@ void InitList()
ReloadFont(0, 0);
- mir_forkthread(sttCheckStatusThreadProc);
+ status_update_thread = mir_forkthread(sttCheckStatusThreadProc);
}
void DeinitList()