mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Fixed server not falling back correctly
Reduce timeout
This commit is contained in:
parent
17211df01e
commit
b130f7646a
1 changed files with 1 additions and 4 deletions
|
@ -54,7 +54,7 @@ def getServerAddress(server, mode):
|
||||||
|
|
||||||
class ConnectionManager(object):
|
class ConnectionManager(object):
|
||||||
|
|
||||||
default_timeout = 20
|
default_timeout = 10
|
||||||
apiClients = []
|
apiClients = []
|
||||||
minServerVersion = "3.0.5930"
|
minServerVersion = "3.0.5930"
|
||||||
connectUser = None
|
connectUser = None
|
||||||
|
@ -763,9 +763,6 @@ class ConnectionManager(object):
|
||||||
log.info("Begin connect")
|
log.info("Begin connect")
|
||||||
|
|
||||||
servers = self.getAvailableServers()
|
servers = self.getAvailableServers()
|
||||||
if not servers:
|
|
||||||
return ConnectionState['Unavailable']
|
|
||||||
|
|
||||||
return self._connectToServers(servers, options)
|
return self._connectToServers(servers, options)
|
||||||
|
|
||||||
def _connectToServers(self, servers, options):
|
def _connectToServers(self, servers, options):
|
||||||
|
|
Loading…
Reference in a new issue