Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-09-09 09:18:47 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-09-09 09:18:47 (GMT)
commit24c9adc6cb3b08462de971323c13e8af4c7ef172 (patch)
treec2a452148e61e404a4ef1bb30c44a93b73f37392
parent27a5907c0a3341bc655c494242e254cc6aaa31cc (diff)
Avoid needles local push checks for the initial case
-rw-r--r--sugar_network/client/routes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sugar_network/client/routes.py b/sugar_network/client/routes.py
index 10d82af..c344ab1 100644
--- a/sugar_network/client/routes.py
+++ b/sugar_network/client/routes.py
@@ -416,6 +416,8 @@ class CachedClientRoutes(ClientRoutes):
push(request, [[seqno, seqno]])
if not pushed_seq:
+ if not self._push_seq.mtime:
+ self._push_seq.commit()
self.broadcast({'event': 'push'})
return