From aa968e00fdceb5df6b3390b651e65fd1a3e60222 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 18 Jun 2019 09:19:06 +0200 Subject: [PATCH] start check ip change task --- oml/localnodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oml/localnodes.py b/oml/localnodes.py index 5178f0a..6254378 100644 --- a/oml/localnodes.py +++ b/oml/localnodes.py @@ -60,6 +60,7 @@ class LocalNodes(dict): return self.setup() self._ip_changed = PeriodicCallback(self._update_if_ip_changed, 60000) + state.main.add_callback(self._ip_changed.start) def setup(self): self.local_ips = get_broadcast_interfaces()