diff web/settings.py @ 559:d563e14da813

fix server side long polling
author Matt Johnston <matt@ucc.asn.au>
date Tue, 09 Jun 2015 23:29:11 +0800
parents 9499bd2f344b
children 87c20b8c5472
line wrap: on
line diff
--- a/web/settings.py	Tue Jun 09 21:22:10 2015 +0800
+++ b/web/settings.py	Tue Jun 09 23:29:11 2015 +0800
@@ -2,6 +2,9 @@
 import fcntl
 import hashlib
 
+import binascii
+import os
+
 class Settings(object):
     RAND_SIZE = 15 # 120 bits
 
@@ -22,7 +25,7 @@
         self.epoch = None
         self.tag = None
 
-        self.update(self, None, 'startepoch')
+        self.update(None, 'startepoch')
 
     def wait(self, epoch_tag = None, timeout = None):
         """ returns false if the timeout was hit """