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 ace7a7ccae
commit 671c9f805f
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();