Stop connection retrying from client when bad packets are detected
This commit is contained in:
parent
be6c84f34d
commit
43486e9be8
@ -34,6 +34,11 @@ class SyncClientFactory(ClientFactory):
|
|||||||
self._timesTried = 0
|
self._timesTried = 0
|
||||||
return SyncClientProtocol(self._client)
|
return SyncClientProtocol(self._client)
|
||||||
|
|
||||||
|
def stopRetrying(self):
|
||||||
|
self._client._reconnectingService.stopService()
|
||||||
|
self._client.ui.showErrorMessage(getMessage("disconnection-notification"))
|
||||||
|
|
||||||
|
|
||||||
class SyncplayClient(object):
|
class SyncplayClient(object):
|
||||||
def __init__(self, playerClass, ui, config):
|
def __init__(self, playerClass, ui, config):
|
||||||
constants.SHOW_OSD = config['showOSD']
|
constants.SHOW_OSD = config['showOSD']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user