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

Minor fixes and additions

Change GUI message to "Connecting..." on start up.
Debug-log the database clean up when closing helper connection.
parent 5d69fbf8
...@@ -207,7 +207,8 @@ window.setInterval(function() { ...@@ -207,7 +207,8 @@ window.setInterval(function() {
var new_progress = progress_item.label; var new_progress = progress_item.label;
var new_pause = pause_item.label; var new_pause = pause_item.label;
if (!status.can_sync) { if (!status.can_sync) {
new_progress = 'Not able to sync' if (globals.just_opened) new_progress = 'Connecting...'
else new_progress = 'Not able to sync'
new_pause = 'inactive' new_pause = 'inactive'
pause_item.enabled = false; pause_item.enabled = false;
} else { } else {
......
...@@ -397,6 +397,7 @@ class WebSocketProtocol(WebSocket): ...@@ -397,6 +397,7 @@ class WebSocketProtocol(WebSocket):
"""Stop server heart, empty DB and exit""" """Stop server heart, empty DB and exit"""
LOG.debug('Stop protocol heart') LOG.debug('Stop protocol heart')
self.heart.stop() self.heart.stop()
LOG.debug('Clean database')
self.clean_db() self.clean_db()
def clean_db(self): def clean_db(self):
......
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