mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
server: don't reuse sockets on windows
Other, conflicts with Port In Use detection
This commit is contained in:
parent
0d8999d64f
commit
1e19cf7ccc
@ -44,7 +44,9 @@ WSServer::WSServer()
|
||||
_clMutex(QMutex::Recursive)
|
||||
{
|
||||
_server.init_asio();
|
||||
#ifndef _WIN32
|
||||
_server.set_reuse_addr(true);
|
||||
#endif
|
||||
|
||||
_server.set_open_handler(bind(&WSServer::onOpen, this, ::_1));
|
||||
_server.set_close_handler(bind(&WSServer::onClose, this, ::_1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user