Skip to content

Commit

Permalink
when remote server reboots, renew notification on remote clients
Browse files Browse the repository at this point in the history
so that volumeStatus notification continues smoothly.
  • Loading branch information
adcxyz committed Jun 21, 2024
1 parent 33bb6c9 commit 0080f24
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SCClassLibrary/Common/Control/ServerStatus.sc
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ ServerStatusWatcher {
unresponsive_ { | val |
if (val != unresponsive) {
unresponsive = val;
// when remote server reboots, remote clients lose
// notification, so renew it when recovering
if (server.remoteControlled) {
if (unresponsive) {
notified = false
} {
this.prSendNotifyRequest
}
};
{ server.changed(\serverRunning) }.defer;
}
}
Expand Down

0 comments on commit 0080f24

Please sign in to comment.