From 77721a30f5a688bcd89b621a8795c42a44a0b5c5 Mon Sep 17 00:00:00 2001 From: Vy Date: Tue, 10 Mar 2026 17:27:32 +0100 Subject: [PATCH] timeout calculations fix --- websocket/src/websocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket/src/websocket.cpp b/websocket/src/websocket.cpp index 16209e2..2200d9e 100644 --- a/websocket/src/websocket.cpp +++ b/websocket/src/websocket.cpp @@ -501,7 +501,7 @@ static int LuaConnect(lua_State* L) } WebsocketConnection* conn = CreateConnection(url); - conn->m_ConnectTimeout = dmTime::GetTime() + timeout * 1000; + conn->m_ConnectTimeout = dmTime::GetMonotonicTime() + timeout * 1000; conn->m_CustomHeaders = custom_headers ? strdup(custom_headers) : 0; conn->m_Protocol = protocol ? strdup(protocol) : 0;