summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src/tlen_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tlen/src/tlen_thread.cpp')
-rw-r--r--protocols/Tlen/src/tlen_thread.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Tlen/src/tlen_thread.cpp b/protocols/Tlen/src/tlen_thread.cpp
index b6956a3095..d5cd06e298 100644
--- a/protocols/Tlen/src/tlen_thread.cpp
+++ b/protocols/Tlen/src/tlen_thread.cpp
@@ -1305,14 +1305,13 @@ static void TlenProcessV(XmlNode *node, ThreadData *info)
static void __cdecl TlenKeepAliveThread(void *ptr)
{
- NETLIBSELECT nls = {0};
-
TlenProtocol *proto = (TlenProtocol *)ptr;
- nls.cbSize = sizeof(NETLIBSELECT);
+
+ NETLIBSELECT nls = {};
nls.dwTimeout = 60000; // 60000 millisecond (1 minute)
nls.hExceptConns[0] = proto->threadData->s;
for (;;) {
- if (CallService(MS_NETLIB_SELECT, 0, (LPARAM) &nls) != 0)
+ if (Netlib_Select(&nls) != 0)
break;
if (proto->tlenOptions.sendKeepAlive)
TlenSend(proto, " \t ");