crash when server failed to start
This commit is contained in:
parent
7c4f14f941
commit
e5937638d4
@ -130,6 +130,8 @@ namespace ix
|
|||||||
// FIXME: we should cancel all the async per connections tasks
|
// FIXME: we should cancel all the async per connections tasks
|
||||||
void WebSocketServer::stop()
|
void WebSocketServer::stop()
|
||||||
{
|
{
|
||||||
|
if (!_thread.joinable()) return; // nothing to do
|
||||||
|
|
||||||
_stop = true;
|
_stop = true;
|
||||||
_thread.join();
|
_thread.join();
|
||||||
_stop = false;
|
_stop = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user