Skip to content
Snippets Groups Projects
Commit 41457a98 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

DBus: Don't fail on dbus error Fixes #9868, #9978

parent 6b01dc37
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,11 @@ def _on_prepare_for_sleep(self, connection, _sender_name, _object_path,
self._disinhibit_sleep()
else:
self._inhibit_sleep(connection)
try:
self._inhibit_sleep(connection)
except GLib.Error as error:
log.warning('Inhibit failed: %s', error)
for conn in app.connections.values():
if conn.state.is_disconnected and conn.time_to_reconnect:
conn.reconnect()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment