Add 5 second timeout to Kodi connections (#2683)

This commit is contained in:
Stephen Hoekstra authored and Paulus Schoutsen committed 2016-07-31 17:21:02 -07:00
1 parent 74f284d2d7
commit ba72166333
1 file changed
+2 -1
@@ -53,7 +53,8 @@ class KodiDevice(MediaPlayerDevice):
self._url = url
self._server = jsonrpc_requests.Server(
'{}/jsonrpc'.format(self._url),
auth=auth)
auth=auth,
timeout=5)
self._turn_off_action = turn_off_action
self._players = list()
self._properties = None