From 1b6329394b05546e1bddd5934ec2b063194bb0a2 Mon Sep 17 00:00:00 2001 From: Stavros Sachtouris <saxtouri@admin.grnet.gr> Date: Fri, 25 Sep 2015 12:41:37 +0300 Subject: [PATCH] Fix UI bug where status never goes to "PAUSED" --- agkyra/protocol.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agkyra/protocol.py b/agkyra/protocol.py index d98e989..1206f9b 100644 --- a/agkyra/protocol.py +++ b/agkyra/protocol.py @@ -607,12 +607,14 @@ class WebSocketProtocol(WebSocket): def pause_sync(self): """Pause syncing (assuming it is up and running)""" if self.syncer: - self.syncer.stop_decide() self.set_status(code=STATUS['PAUSING']) + self.syncer.stop_decide() + self.set_status(code=STATUS['PAUSED']) def start_sync(self): """Start syncing""" self.syncer.start_decide() + self.set_status(code=STATUS['SYNCING']) def force_sync(self): """Force syncing, assuming there is a directory or container problem""" -- GitLab