mirror of
https://github.com/defold/extension-websocket.git
synced 2025-09-30 01:02:18 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
02198c9401 | ||
|
4c5d1ecd61 | ||
|
3331ec1a8d |
@@ -72,7 +72,3 @@ socket_timeout = 10000000
|
||||
## Source code
|
||||
|
||||
The source code is available on [GitHub](https://github.com/defold/extension-websocket)
|
||||
|
||||
## API reference
|
||||
|
||||
https://defold.com/extension-websocket/api/
|
||||
|
@@ -123,7 +123,7 @@ Result ReceiveHeaders(WebsocketConnection* conn)
|
||||
dmSocket::Result sr = WaitForSocket(conn, dmSocket::SELECTOR_KIND_READ, SOCKET_WAIT_TIMEOUT);
|
||||
if (dmSocket::RESULT_OK != sr)
|
||||
{
|
||||
if (dmSocket::RESULT_WOULDBLOCK)
|
||||
if (dmSocket::RESULT_WOULDBLOCK == sr)
|
||||
{
|
||||
DebugLog(2, "Waiting for socket to be available for reading");
|
||||
return RESULT_WOULDBLOCK;
|
||||
@@ -291,4 +291,4 @@ Result VerifyHeaders(WebsocketConnection* conn)
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user