Fix Syncplay v1.6.6 VLC connection issue (#365)
This commit is contained in:
parent
f28281b2eb
commit
bce5ed05f9
@ -11,7 +11,7 @@ import urllib.error
|
|||||||
import urllib.parse
|
import urllib.parse
|
||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
from twisted.internet.protocol import ClientFactory
|
from twisted.internet.protocol import ReconnectingClientFactory
|
||||||
from twisted.protocols.basic import LineReceiver
|
from twisted.protocols.basic import LineReceiver
|
||||||
|
|
||||||
from syncplay import constants, utils
|
from syncplay import constants, utils
|
||||||
@ -49,8 +49,7 @@ class VLCProtocol(LineReceiver):
|
|||||||
def connectionLost(self, reason):
|
def connectionLost(self, reason):
|
||||||
self.factory.connected = False
|
self.factory.connected = False
|
||||||
|
|
||||||
|
class VLCClientFactory(ReconnectingClientFactory):
|
||||||
class VLCClientFactory(ClientFactory):
|
|
||||||
def __init__(self, playerController, vlcHasResponded, vlcLaunchedTime, vlcProcess):
|
def __init__(self, playerController, vlcHasResponded, vlcLaunchedTime, vlcProcess):
|
||||||
self._playerController = playerController
|
self._playerController = playerController
|
||||||
self._process = vlcProcess
|
self._process = vlcProcess
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user