Commit f6e4a770 authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis
Browse files

Bug fix: repeat heartbeat in helper server

parent 353283cf
......@@ -182,6 +182,7 @@ class WebSocketProtocol(WebSocket):
def heartbeat(self):
if not self.db:
self.db = sqlite3.connect(self.session_db)
while True:
self.db.execute('BEGIN')
self.db.execute('UPDATE %s SET beat="%s" WHERE ui_id="%s"' % (
self.session_relation, time.time(), self.ui_id))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment