From 23f0b751b57b2dd9f6e912cec92364ff59b864b2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 9 Sep 2021 22:24:07 +0300 Subject: fix for a crappy ::GetCurrentThread call that breaks all Wait* functions --- plugins/NotifyAnything/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NotifyAnything/src') diff --git a/plugins/NotifyAnything/src/main.cpp b/plugins/NotifyAnything/src/main.cpp index 6c0c7fb9ae..bcfee4a9b3 100644 --- a/plugins/NotifyAnything/src/main.cpp +++ b/plugins/NotifyAnything/src/main.cpp @@ -837,7 +837,7 @@ void initWinsock() void __cdecl udptcpThreadFunc(void *useUdp) { - MThreadHandle threadLock(useUdp ? g_udp_thread : g_tcp_thread); + MThreadLock threadLock(useUdp ? g_udp_thread : g_tcp_thread); try { @@ -948,8 +948,8 @@ void __cdecl udptcpThreadFunc(void *useUdp) void start_threads() { g_exit_threads = false; - mir_forkthread(udptcpThreadFunc, (void *)1); - mir_forkthread(udptcpThreadFunc); + g_udp_thread = mir_forkthread(udptcpThreadFunc, (void *)1); + g_tcp_thread = mir_forkthread(udptcpThreadFunc); } void stop_threads() -- cgit v1.2.3