Fix Syncplay v1.6.6 VLC connection issue (#365)

This commit is contained in:
Etoh 2020-11-23 19:44:49 +00:00 committed by GitHub
parent f28281b2eb
commit bce5ed05f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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