mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +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(!stopHeartbeatThread)
|
||||
report(APIEvent::Type::DeviceDisconnected, APIEvent::Severity::Error);
|
||||
return;
|
||||
break;
|
||||
}
|
||||
}
|
||||
receivedMessage = false;
|
||||
|
||||
Reference in New Issue
Block a user