Commit 5b73897f authored by Zard1096's avatar Zard1096 Committed by Roger A. Light
Browse files

Fix iOS crash issues



Relate to issues #327 and #63.
mosq->sock may be closed before FD_SET(mosq->sock, &writefds) and
FD_ISSET(mosq->sock, &writefds) but after judgement in line 947
if(mosq->sock != INVALID_SOCKET). FD_SET(-1, ...) and FD_ISSET(-1, ...)
would certainly crash.

Signed-off-by: default avatarZard1096 <mr.zardqi@gmail.com>
parent 0ba0bc43
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment