(self)
| 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 |
no test coverage detected