mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Merge pull request #768 from disconn3ct/fix/381-login-timeout
Increase login timeout to 10s
This commit is contained in:
commit
18b785c68b
1 changed files with 1 additions and 1 deletions
|
@ -432,7 +432,7 @@ class API(object):
|
|||
|
||||
try:
|
||||
LOG.info("Trying to login to %s/%s as %s" % (server_url, path, username))
|
||||
response = self.send_request(server_url, path, method="post", headers=headers, data=json.dumps(auth_data))
|
||||
response = self.send_request(server_url, path, method="post", timeout=10, headers=headers, data=json.dumps(auth_data))
|
||||
|
||||
if response.status_code == 200:
|
||||
return response.json()
|
||||
|
|
Loading…
Reference in a new issue