mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Heartbeat: Break from loop rather than returning
This makes sure we run the cleanup code at the bottom of the thread
This commit is contained in:
+1
-1
@@ -240,7 +240,7 @@ bool Device::open() {
|
|||||||
if(!receivedMessage && !settings->applyingSettings) {
|
if(!receivedMessage && !settings->applyingSettings) {
|
||||||
if(!stopHeartbeatThread)
|
if(!stopHeartbeatThread)
|
||||||
report(APIEvent::Type::DeviceDisconnected, APIEvent::Severity::Error);
|
report(APIEvent::Type::DeviceDisconnected, APIEvent::Severity::Error);
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
receivedMessage = false;
|
receivedMessage = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user