Add camera timeouts
This commit is contained in:
parent
2508e9f9ff
commit
a80a74b586
3 changed files with 6 additions and 5 deletions
|
@ -49,7 +49,7 @@ class FoscamCamera(Camera):
|
|||
def camera_image(self):
|
||||
"""Return a still image reponse from the camera."""
|
||||
# Send the request to snap a picture and return raw jpg data
|
||||
response = requests.get(self._snap_picture_url)
|
||||
response = requests.get(self._snap_picture_url, timeout=10)
|
||||
|
||||
return response.content
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue