Skip to content

Commit

Permalink
Further Reduce Request Timeout to 500ms
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba authored Dec 27, 2019
1 parent e76b3e7 commit 39177ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/samsungtv_custom/samsungtvws/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def get_running_app(self):
r = None

try:
r = requests.get('http://{host}:8001/api/v2/applications/{value}'.format(host=self.host, value=self._app_list[app]), timeout=2)
r = requests.get('http://{host}:8001/api/v2/applications/{value}'.format(host=self.host, value=self._app_list[app]), timeout=0.5)
except requests.exceptions.RequestException as e:
pass

Expand Down

0 comments on commit 39177ab

Please sign in to comment.