From 43486e9be8b75c260ca3b563cfe54cc14dff8d1c Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Sun, 27 Jan 2019 15:54:39 +0100 Subject: [PATCH] Stop connection retrying from client when bad packets are detected --- syncplay/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/syncplay/client.py b/syncplay/client.py index 1385b0f..0758e2e 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -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']