Only stop server if its running

This commit is contained in:
tt2468 2021-04-28 12:20:56 -07:00
parent c91b924f0e
commit af7a539e84

View File

@ -40,7 +40,8 @@ WebSocketServer::WebSocketServer() :
WebSocketServer::~WebSocketServer()
{
Stop();
if (_server.is_listening())
Stop();
}
void WebSocketServer::ServerRunner()