Heartbeat: Break from loop rather than returning
This makes sure we run the cleanup code at the bottom of the threadpull/25/head
parent
a325d8a12b
commit
8e999a0fb8
|
|
@ -240,7 +240,7 @@ bool Device::open() {
|
|||
if(!receivedMessage && !settings->applyingSettings) {
|
||||
if(!stopHeartbeatThread)
|
||||
report(APIEvent::Type::DeviceDisconnected, APIEvent::Severity::Error);
|
||||
return;
|
||||
break;
|
||||
}
|
||||
}
|
||||
receivedMessage = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue