mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-13 20:25:53 +08:00
[fix] preserve device presence across host status heartbeats
This commit is contained in:
1 parent
3b60a32ba7
commit
69d4394717
1 file changed
+3
@@ -22,6 +22,9 @@ public:
|
||||
|
||||
void SetSignalConnected(bool connected) {
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
// Managed-host heartbeats repeat the current state every 250 ms. They
|
||||
// must not discard server presence or refresh its age.
|
||||
if (signal_connected_ == connected) return;
|
||||
signal_connected_ = connected;
|
||||
cache_.clear();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user