Commit 1c56bb17 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Set status to PAUSED after initiate_probe

parent 85a1a30d
...@@ -531,7 +531,7 @@ class WebSocketProtocol(WebSocket): ...@@ -531,7 +531,7 @@ class WebSocketProtocol(WebSocket):
break break
if local_ok and remote_ok: if local_ok and remote_ok:
syncer_.initiate_probe() syncer_.initiate_probe()
self.set_status(code=STATUS['SYNCING']) self.set_status(code=STATUS['PAUSED'])
except pithos_client.ClientError as ce: except pithos_client.ClientError as ce:
LOGGER.debug('backend init failed: %s %s' % (ce, ce.status)) LOGGER.debug('backend init failed: %s %s' % (ce, ce.status))
try: try:
...@@ -636,7 +636,7 @@ class WebSocketProtocol(WebSocket): ...@@ -636,7 +636,7 @@ class WebSocketProtocol(WebSocket):
self.init_sync() self.init_sync()
status = self.get_status('code') status = self.get_status('code')
if self.syncer and self.settings['sync_on_start'] and \ if self.syncer and self.settings['sync_on_start'] and \
status == STATUS["SYNCING"]: status == STATUS["PAUSED"]:
self.start_sync() self.start_sync()
else: else:
action = r.get('path', 'ui_id') action = r.get('path', '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