diff --git a/syncplay/client.py b/syncplay/client.py index fc57f6f..932686c 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -39,7 +39,7 @@ class SyncClientFactory(ClientFactory): self._timesTried += 1 self._client.ui.showMessage(getMessage("reconnection-attempt-notification")) self.reconnecting = True - reactor.callLater(0.1 * (2 ** self._timesTried), connector.connect) + reactor.callLater(0.1 * (2 ** min(self._timesTried,5)), connector.connect) else: message = getMessage("disconnection-notification") self._client.ui.showErrorMessage(message) diff --git a/syncplay/constants.py b/syncplay/constants.py index 2ec7783..f941d2e 100644 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -46,7 +46,7 @@ MINIMUM_SLOWDOWN_THRESHOLD = 1.3 SLOWDOWN_RESET_THRESHOLD = 0.1 DIFFERENT_DURATION_THRESHOLD = 2.5 PROTOCOL_TIMEOUT = 12.5 -RECONNECT_RETRIES = 10 +RECONNECT_RETRIES = 999 SERVER_STATE_INTERVAL = 1 WARNING_OSD_MESSAGES_LOOP_INTERVAL = 1 AUTOPLAY_DELAY = 3.0