Stop connection retrying from client when bad packets are detected

This commit is contained in:
Alberto Sottile 2019-01-27 15:54:39 +01:00
parent be6c84f34d
commit 43486e9be8
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ class SyncClientFactory(ClientFactory):
self._timesTried = 0
return SyncClientProtocol(self._client)
def stopRetrying(self):
self._client._reconnectingService.stopService()
self._client.ui.showErrorMessage(getMessage("disconnection-notification"))
class SyncplayClient(object):
def __init__(self, playerClass, ui, config):
constants.SHOW_OSD = config['showOSD']