Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 15b1e66

Browse files
anrodloseveas
authored andcommitted
See #66: bind to new owner if NetworkManager restarts
1 parent dbfa159 commit 15b1e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetworkManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def __eq__(self, other):
258258
@property
259259
def proxy(self):
260260
if not self._proxy:
261-
self._proxy = dbus.SystemBus().get_object(self.dbus_service, self.object_path)
261+
self._proxy = dbus.SystemBus().get_object(self.dbus_service, self.object_path, follow_name_owner_changes=True)
262262
self._proxy.created = time.time()
263263
elif self._proxy.created < self.last_disconnect:
264264
if self.is_transient:

0 commit comments

Comments
 (0)