From bce5ed05f9054dc3fa1712ec9418c2fda3061866 Mon Sep 17 00:00:00 2001 From: Etoh Date: Mon, 23 Nov 2020 19:44:49 +0000 Subject: [PATCH] Fix Syncplay v1.6.6 VLC connection issue (#365) --- syncplay/players/vlc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/syncplay/players/vlc.py b/syncplay/players/vlc.py index 8e4ad58..39cd1df 100755 --- a/syncplay/players/vlc.py +++ b/syncplay/players/vlc.py @@ -11,7 +11,7 @@ import urllib.error import urllib.parse import urllib.request -from twisted.internet.protocol import ClientFactory +from twisted.internet.protocol import ReconnectingClientFactory from twisted.protocols.basic import LineReceiver from syncplay import constants, utils @@ -49,8 +49,7 @@ class VLCProtocol(LineReceiver): def connectionLost(self, reason): self.factory.connected = False - -class VLCClientFactory(ClientFactory): +class VLCClientFactory(ReconnectingClientFactory): def __init__(self, playerController, vlcHasResponded, vlcLaunchedTime, vlcProcess): self._playerController = playerController self._process = vlcProcess