moved error checking code outside of socket implementation

This commit is contained in:
JCash
2020-09-27 17:02:14 +02:00
parent bd8569f49a
commit 274f29d7e4
2 changed files with 2 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ ssize_t WSL_RecvCallback(wslay_event_context_ptr ctx, uint8_t *buf, size_t len,
dmSocket::Result socket_result = Receive(conn, buf, len, &r);
if (dmSocket::RESULT_OK == socket_result && r == 0)
socket_result = dmSocket::RESULT_WOULDBLOCK;
socket_result = dmSocket::RESULT_CONNABORTED;
if (dmSocket::RESULT_OK != socket_result)
{