minor tweaks to have full feature parity before unittest broke
This commit is contained in:
parent
edac7a0171
commit
0caeb81327
@ -1 +1 @@
|
|||||||
1.5.2
|
1.5.3
|
||||||
|
@ -221,6 +221,7 @@ namespace ix
|
|||||||
|
|
||||||
uint32_t retries = 0;
|
uint32_t retries = 0;
|
||||||
millis duration;
|
millis duration;
|
||||||
|
ix::WebSocketInitResult status;
|
||||||
|
|
||||||
// Try to connect perpertually
|
// Try to connect perpertually
|
||||||
while (true)
|
while (true)
|
||||||
@ -239,14 +240,14 @@ namespace ix
|
|||||||
firstConnectionAttempt = false;
|
firstConnectionAttempt = false;
|
||||||
|
|
||||||
// Only sleep if we are retrying
|
// Only sleep if we are retrying
|
||||||
if (retries != 0)
|
if (duration.count() > 0)
|
||||||
{
|
{
|
||||||
// to do: make sleeping conditional
|
// to do: make sleeping conditional
|
||||||
std::this_thread::sleep_for(duration);
|
std::this_thread::sleep_for(duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to connect synchronously
|
// Try to connect synchronously
|
||||||
ix::WebSocketInitResult status = connect(_handshakeTimeoutSecs);
|
status = connect(_handshakeTimeoutSecs);
|
||||||
|
|
||||||
if (!status.success)
|
if (!status.success)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user