Skip to content

Commit 2ad6407

Browse files
ivasilyeuVy
andauthored
timeout calculations fix (#64)
Co-authored-by: Vy <contact@vasilyeu.com>
1 parent 37b716b commit 2ad6407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket/src/websocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ static int LuaConnect(lua_State* L)
501501
}
502502

503503
WebsocketConnection* conn = CreateConnection(url);
504-
conn->m_ConnectTimeout = dmTime::GetTime() + timeout * 1000;
504+
conn->m_ConnectTimeout = dmTime::GetMonotonicTime() + timeout * 1000;
505505
conn->m_CustomHeaders = custom_headers ? strdup(custom_headers) : 0;
506506
conn->m_Protocol = protocol ? strdup(protocol) : 0;
507507

0 commit comments

Comments
 (0)