crash when server failed to start

This commit is contained in:
Benjamin Sergeant 2019-01-01 16:14:46 -08:00
parent 9a7767ecb1
commit b13fee16c1

View File

@ -130,6 +130,8 @@ namespace ix
// FIXME: we should cancel all the async per connections tasks
void WebSocketServer::stop()
{
if (!_thread.joinable()) return; // nothing to do
_stop = true;
_thread.join();
_stop = false;