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

Fix UI bug where status never goes to "PAUSED"

parent ecd8e9ec
...@@ -607,12 +607,14 @@ class WebSocketProtocol(WebSocket): ...@@ -607,12 +607,14 @@ class WebSocketProtocol(WebSocket):
def pause_sync(self): def pause_sync(self):
"""Pause syncing (assuming it is up and running)""" """Pause syncing (assuming it is up and running)"""
if self.syncer: if self.syncer:
self.syncer.stop_decide()
self.set_status(code=STATUS['PAUSING']) self.set_status(code=STATUS['PAUSING'])
self.syncer.stop_decide()
self.set_status(code=STATUS['PAUSED'])
def start_sync(self): def start_sync(self):
"""Start syncing""" """Start syncing"""
self.syncer.start_decide() self.syncer.start_decide()
self.set_status(code=STATUS['SYNCING'])
def force_sync(self): def force_sync(self):
"""Force syncing, assuming there is a directory or container problem""" """Force syncing, assuming there is a directory or container problem"""
......
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