(self)
| 81 | self._client.ui.showDebugMessage(line) |
| 82 | |
| 83 | def connectionMade(self): |
| 84 | self.hadFirstPlaylistIndex = False |
| 85 | self.hadFirstStateUpdate = False |
| 86 | self._client.initProtocol(self) |
| 87 | if self._client._clientSupportsTLS: |
| 88 | if self._client._serverSupportsTLS: |
| 89 | self.sendTLS({"startTLS": "send"}) |
| 90 | self._client.ui.showMessage(getMessage("startTLS-initiated")) |
| 91 | else: |
| 92 | self._client.ui.showErrorMessage(getMessage("startTLS-not-supported-server")) |
| 93 | self.sendHello() |
| 94 | else: |
| 95 | self._client.ui.showMessage(getMessage("startTLS-not-supported-client")) |
| 96 | self.sendHello() |
| 97 | |
| 98 | def connectionLost(self, reason): |
| 99 | try: |
nothing calls this directly
no test coverage detected