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