Skip to content
Snippets Groups Projects
Commit 5b6e3e40 authored by jkerdreu's avatar jkerdreu
Browse files

Added mode & scene



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2512 b32b6428-25c9-4566-ad07-03861ab6144f
parent 53d01264
Branches
No related tags found
No related merge requests found
......@@ -188,8 +188,8 @@ class TuyaClient(object):
continue
now_ = now()
# 2 sec since last send and nothing arise => cnx is stalled
if (now_ > self.last_send + 2) and (self.last_recv < self.last_send):
# some sec since last send and nothing arise => cnx is stalled
if (now_ > self.last_send + 3) and (self.last_recv < self.last_send):
logger.warning(f"Connexion stalled {self.ip}")
self.last_send = 0
self.network_error()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment