Skip to content

Commit b4c7e91

Browse files
committed
Review fixes
1 parent a47b8b3 commit b4c7e91

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

websocket/src/handshake.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include <dmsdk/dlib/http_client.h>
44
#include <ctype.h> // tolower
55

6+
#if !defined(__EMSCRIPTEN__)
7+
68
namespace dmWebsocket
79
{
810

@@ -272,3 +274,5 @@ Result VerifyHeaders(WebsocketConnection* conn)
272274
}
273275

274276
} // namespace
277+
278+
#endif

websocket/src/websocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void DebugPrint(int level, const char* msg, const void* _bytes, uint32_t num_byt
135135
// has the connect procedure taken too long?
136136
static bool CheckConnectTimeout(WebsocketConnection* conn)
137137
{
138-
uint64_t t = dmTime::GetTime();
138+
uint64_t t = dmTime::GetMonotonicTime();
139139
return t >= conn->m_ConnectTimeout;
140140
}
141141

0 commit comments

Comments
 (0)