From a54764670434df17a5c058cd79d6e233379966dd Mon Sep 17 00:00:00 2001 From: Uriziel Date: Wed, 19 Dec 2012 20:01:55 +0100 Subject: [PATCH] Moved switch to allow stopping client on starting player --- syncplay/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index f3f0a53..c714fb0 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -301,12 +301,12 @@ class SyncplayClient(object): def start(self, host, port): if self._running: return + self._running = True if self._playerClass: self._playerClass.run(self, self._startupArgs.player_path, self._startupArgs.file, self._startupArgs._args) self._playerClass = None self.protocolFactory = SyncClientFactory(self) reactor.connectTCP(host, port, self.protocolFactory) - self._running = True reactor.run() def stop(self, promptForAction = False):