Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/node/routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/node/routes.py')
-rw-r--r--sugar_network/node/routes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sugar_network/node/routes.py b/sugar_network/node/routes.py
index 9b0e27f..57c1dff 100644
--- a/sugar_network/node/routes.py
+++ b/sugar_network/node/routes.py
@@ -58,6 +58,10 @@ class NodeRoutes(model.VolumeRoutes, model.FrontRoutes):
self._stats = stats_node.Sniffer(volume)
coroutine.spawn(self._commit_stats)
+ def close(self):
+ if self._stats is not None:
+ self._stats.commit()
+
@property
def guid(self):
return self._guid