quit checkConnection after sleeping if requested to stop (iterate on #151)

This commit is contained in:
Benjamin Sergeant 2020-01-28 10:27:30 -08:00
parent 78af792f23
commit 44a813caae

View File

@ -287,6 +287,11 @@ namespace ix
_sleepCondition.wait_for(lock, duration);
}
if (_stop)
{
break;
}
// Try to connect synchronously
ix::WebSocketInitResult status = connect(_handshakeTimeoutSecs);