quit checkConnection after sleeping if requested to stop (iterate on #151)
This commit is contained in:
parent
78af792f23
commit
44a813caae
@ -287,6 +287,11 @@ namespace ix
|
|||||||
_sleepCondition.wait_for(lock, duration);
|
_sleepCondition.wait_for(lock, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_stop)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Try to connect synchronously
|
// Try to connect synchronously
|
||||||
ix::WebSocketInitResult status = connect(_handshakeTimeoutSecs);
|
ix::WebSocketInitResult status = connect(_handshakeTimeoutSecs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user