mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Only stop server if its running
This commit is contained in:
parent
c91b924f0e
commit
af7a539e84
@ -40,7 +40,8 @@ WebSocketServer::WebSocketServer() :
|
||||
|
||||
WebSocketServer::~WebSocketServer()
|
||||
{
|
||||
Stop();
|
||||
if (_server.is_listening())
|
||||
Stop();
|
||||
}
|
||||
|
||||
void WebSocketServer::ServerRunner()
|
||||
|
Loading…
Reference in New Issue
Block a user