connection_manager.vala: do not set disconnect state before suspend

This commit is contained in:
Xavier Del Campo Romero 2022-05-06 16:33:23 +02:00
parent baa4a6a1eb
commit 78333ce250
1 changed files with 4 additions and 3 deletions

View File

@ -348,9 +348,10 @@ public class ConnectionManager : Object {
}
private async void on_prepare_for_sleep(bool suspend) {
foreach (Account account in connections.keys) {
change_connection_state(account, ConnectionState.DISCONNECTED);
}
request_inhibit(true);
// foreach (Account account in connections.keys) {
// change_connection_state(account, ConnectionState.DISCONNECTED);
// }
if (suspend) {
debug("Login1: Device suspended");
foreach (Account account in connections.keys) {