# HG changeset patch # User Goffi # Date 1552289983 -3600 # Node ID 825e8c91b703dc4f2cdca602c2dc76a5adc2fe02 # Parent a579eda31f4fed286180c71d798c0c800f904ae2 core: (de)activate sync flag when the frontend is being paused or resumed diff -r a579eda31f4f -r 825e8c91b703 cagou/core/cagou_main.py --- a/cagou/core/cagou_main.py Mon Mar 11 08:39:43 2019 +0100 +++ b/cagou/core/cagou_main.py Mon Mar 11 08:39:43 2019 +0100 @@ -334,11 +334,13 @@ s.sendall(STATE_RUNNING) def on_pause(self): + self.host.sync = False self._frontend_status_socket.sendall(STATE_PAUSED) return True def on_resume(self): self._frontend_status_socket.sendall(STATE_RUNNING) + self.host.sync = True def on_stop(self): if sys.platform == "android":