mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Device: Wider tolerance for disconnections
This commit is contained in:
+1
-1
@@ -246,7 +246,7 @@ bool Device::open(OpenFlags flags, OpenStatusHandler handler) {
|
||||
// No heartbeat received, request a status
|
||||
com->sendCommand(Command::RequestStatusUpdate);
|
||||
// The response should come back quickly if the com is quiet
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||
// Check if we got a message, and if not, if settings are being applied
|
||||
if(!receivedMessage && !heartbeatSuppressed()) {
|
||||
if(!stopHeartbeatThread && !isDisconnected())
|
||||
|
||||
Reference in New Issue
Block a user