connection_manager.vala: do not set disconnect state before suspend
This commit is contained in:
parent
baa4a6a1eb
commit
78333ce250
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue