Skip to content
Snippets Groups Projects
Commit d68d3c43 authored by jkerdreu's avatar jkerdreu
Browse files

Fix a timer issue in metadb reply, causing a invalid refresh rate

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2093 b32b6428-25c9-4566-ad07-03861ab6144f
parent cc8b1c2c
Branches
No related tags found
No related merge requests found
......@@ -45,6 +45,10 @@ class Device:
self.description.update(data)
self.refresh_description = now()
def set_db(self,data):
self.db = data
self.refresh_db = now()
def update_db(self,data):
self.db.update(data)
self.refresh_db = now()
......@@ -223,7 +227,7 @@ class Monitor:
addr = msg.body['device']
target = self.devices.get_with_addr(addr)
if target and 'map' in msg.body:
target.db = msg.body['map']
target.set_db(msg.body['map'])
elif self.is_update_metadb(msg):
addr = msg.body['device']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment