Update handshake.cpp

Typo?
This commit is contained in:
Alexey Gulev
2025-07-22 21:36:59 +02:00
committed by GitHub
parent 3331ec1a8d
commit 4c5d1ecd61

View File

@@ -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