mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-10 06:16:46 +00:00
Add timeout of 10 seconds to check.php request.
This commit is contained in:
parent
e9f5641363
commit
03dc98b4e2
@ -75,7 +75,7 @@ class FotaCheck:
|
|||||||
params["chnl"] = self.chnl
|
params["chnl"] = self.chnl
|
||||||
#params["osvs"] = self.osvs
|
#params["osvs"] = self.osvs
|
||||||
|
|
||||||
req = self.sess.get(url, params=params)
|
req = self.sess.get(url, params=params, timeout=10)
|
||||||
if req.status_code == 200:
|
if req.status_code == 200:
|
||||||
return req.text
|
return req.text
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user