fix update reconnect notification when waking from sleep
This commit is contained in:
@@ -188,6 +188,7 @@ impl UpdateMonitor {
|
||||
}
|
||||
Err(e) => {
|
||||
log::error!("Error in event stream: {}", e);
|
||||
self.first_connection = true;
|
||||
break; // Break inner loop to reconnect
|
||||
}
|
||||
}
|
||||
@@ -219,6 +220,7 @@ impl UpdateMonitor {
|
||||
match command {
|
||||
UpdateMonitorCommand::Restart => {
|
||||
log::info!(target: target::UPDATES, "Restarting update monitor");
|
||||
self.first_connection = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user