summaryrefslogtreecommitdiff
path: root/protocols/EmLanProto/src/lan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/EmLanProto/src/lan.cpp')
-rw-r--r--protocols/EmLanProto/src/lan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/EmLanProto/src/lan.cpp b/protocols/EmLanProto/src/lan.cpp
index 42787169d2..8d4d07dc53 100644
--- a/protocols/EmLanProto/src/lan.cpp
+++ b/protocols/EmLanProto/src/lan.cpp
@@ -146,7 +146,7 @@ void CLan::StartListen()
return;
}
- mir_forkthread(ListenProc, this);
+ m_hListenThread = mir_forkthread(ListenProc, this);
m_hAcceptTCPThread = mir_forkthread(AcceptTCPProc, this);
if (m_hListenThread == nullptr || m_hAcceptTCPThread == nullptr) {
m_mode = LM_ON;
@@ -179,7 +179,7 @@ void CLan::Listen()
if (m_mode != LM_LISTEN)
return;
- MThreadHandle threadLock(m_hListenThread);
+ MThreadLock threadLock(m_hListenThread);
mir_ptr<char> buf((char*)mir_alloc(65536));
while (true) {