Moved switch to allow stopping client on starting player

This commit is contained in:
Uriziel 2012-12-19 20:01:55 +01:00
parent 7392c48158
commit a547646704
1 changed files with 1 additions and 1 deletions

View File

@ -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):