fix race condition in SelectInteruptPipe, where _fildes are not protected (caught by fedora tsan)
This commit is contained in:
@ -144,11 +144,6 @@ namespace ix
|
||||
|
||||
void WebSocket::stop()
|
||||
{
|
||||
bool automaticReconnection = _automaticReconnection;
|
||||
|
||||
// This value needs to be forced when shutting down, it is restored later
|
||||
_automaticReconnection = false;
|
||||
|
||||
close();
|
||||
|
||||
if (_thread.joinable())
|
||||
@ -157,8 +152,6 @@ namespace ix
|
||||
_thread.join();
|
||||
_stop = false;
|
||||
}
|
||||
|
||||
_automaticReconnection = automaticReconnection;
|
||||
}
|
||||
|
||||
WebSocketInitResult WebSocket::connect(int timeoutSecs)
|
||||
|
Reference in New Issue
Block a user