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

Method askPlayer

syncplay/client.py:182–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

180 self._askPlayerTimer.start(when)
181
182 def askPlayer(self):
183 if not self._running:
184 return
185 if self._player:
186 self._player.askForStatus()
187 self.checkIfConnected()
188
189 def checkIfConnected(self):
190 if self._lastGlobalUpdate and self._protocol and time.time() - self._lastGlobalUpdate > constants.PROTOCOL_TIMEOUT:

Callers 1

updateGlobalStateMethod · 0.95

Calls 2

checkIfConnectedMethod · 0.95
askForStatusMethod · 0.45

Tested by

no test coverage detected