Add 5 second timeout to Kodi connections (#2683)
This commit is contained in:
parent
63ba5044b3
commit
125059c5ac
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ class KodiDevice(MediaPlayerDevice):
|
||||||
self._url = url
|
self._url = url
|
||||||
self._server = jsonrpc_requests.Server(
|
self._server = jsonrpc_requests.Server(
|
||||||
'{}/jsonrpc'.format(self._url),
|
'{}/jsonrpc'.format(self._url),
|
||||||
auth=auth)
|
auth=auth,
|
||||||
|
timeout=5)
|
||||||
self._turn_off_action = turn_off_action
|
self._turn_off_action = turn_off_action
|
||||||
self._players = list()
|
self._players = list()
|
||||||
self._properties = None
|
self._properties = None
|
||||||
|
|
Loading…
Add table
Reference in a new issue