MCPcopy Create free account
hub / github.com/Syncplay/syncplay / stop

Method stop

syncplay/client.py:907–918  ·  view source on GitHub ↗
(self, promptForAction=False)

Source from the content-addressed store, hash-verified

905 reactor.run()
906
907 def stop(self, promptForAction=False):
908 if not self._running:
909 return
910 self._running = False
911 self.destroyProtocol()
912 if self._player:
913 self._player.drop()
914 if self.ui:
915 self.ui.drop()
916 reactor.callLater(0.1, reactor.stop)
917 if promptForAction:
918 self.ui.promptFor(getMessage("enter-to-exit-prompt"))
919
920 def _performRetryStateReset(self):
921 """

Callers 8

stopAutoplayCountdownMethod · 0.80
checkReadyStatesMethod · 0.80
__displayMessageOnOSDMethod · 0.80
_resetStateTimerMethod · 0.80
_deactivateStateTimerMethod · 0.80
exitSyncplayMethod · 0.80

Calls 4

destroyProtocolMethod · 0.95
getMessageFunction · 0.90
dropMethod · 0.45
promptForMethod · 0.45

Tested by

no test coverage detected