Turns out nothing actually tried to keep the monitor alive. After a
(rather random) interval, the bus just got dropped and we didn't get
any more notifications from anyone.
Stash it in a global variable.
Add the D-Bus monitor here, because we might send commands off immediately,
and we want to make sure the server connection is up.
"""
Add the D-Bus monitor here, because we might send commands off immediately,
and we want to make sure the server connection is up.
"""
T.Coroutine(kickpeers, name = 'kickpeers').switch()
T.Coroutine(kickpeers, name = 'kickpeers').switch()
- dbm = DBusMonitor()
- dbm.addmon(NetworkManagerMonitor())
- dbm.addmon(MaemoICdMonitor())
- G.timeout_add_seconds(300, lambda: (netupdown(True, ['interval-timer'])
- or True))
+ DBM = DBusMonitor()
+ DBM.addmon(NetworkManagerMonitor())
+ DBM.addmon(MaemoICdMonitor())
+ G.timeout_add_seconds(30, lambda: (netupdown(True, ['interval-timer'])
+ or True))