use a regular mutex instead of a recursive one + stop properly

This commit is contained in:
Benjamin Sergeant
2019-05-15 19:19:13 -07:00
parent 934b28f5b6
commit 243f41bf28
4 changed files with 25 additions and 8 deletions

View File

@ -293,6 +293,9 @@ namespace ix
break;
}
// We cannot enter poll which might block forever if we are stopping
if (_stop) break;
// 2. Poll to see if there's any new data available
WebSocketTransport::PollResult pollResult = _ws.poll();