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

Method checkIfConnected

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

Source from the content-addressed store, hash-verified

187 self.checkIfConnected()
188
189 def checkIfConnected(self):
190 if self._lastGlobalUpdate and self._protocol and time.time() - self._lastGlobalUpdate > constants.PROTOCOL_TIMEOUT:
191 self._lastGlobalUpdate = None
192 self.ui.showErrorMessage(getMessage("server-timeout-error"))
193 self._protocol.drop()
194 return False
195 return True
196
197 def _determinePlayerStateChange(self, paused, position):
198 pauseChange = self.getPlayerPaused() != paused and self.getGlobalPaused() != paused

Callers 1

askPlayerMethod · 0.95

Calls 3

getMessageFunction · 0.90
showErrorMessageMethod · 0.45
dropMethod · 0.45

Tested by

no test coverage detected