From 1c56bb171414695d89fd3534a67a9fa399485d7f Mon Sep 17 00:00:00 2001 From: Giorgos Korfiatis <gkorf@grnet.gr> Date: Thu, 22 Oct 2015 00:32:17 +0300 Subject: [PATCH] Set status to PAUSED after initiate_probe --- agkyra/protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agkyra/protocol.py b/agkyra/protocol.py index f01fcbe..17e53d5 100644 --- a/agkyra/protocol.py +++ b/agkyra/protocol.py @@ -531,7 +531,7 @@ class WebSocketProtocol(WebSocket): break if local_ok and remote_ok: syncer_.initiate_probe() - self.set_status(code=STATUS['SYNCING']) + self.set_status(code=STATUS['PAUSED']) except pithos_client.ClientError as ce: LOGGER.debug('backend init failed: %s %s' % (ce, ce.status)) try: @@ -636,7 +636,7 @@ class WebSocketProtocol(WebSocket): self.init_sync() status = self.get_status('code') if self.syncer and self.settings['sync_on_start'] and \ - status == STATUS["SYNCING"]: + status == STATUS["PAUSED"]: self.start_sync() else: action = r.get('path', 'ui_id') -- GitLab