File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,13 @@ def update_client_id(self):
104104 self ._client_id = mqtt .base62 (uuid .uuid4 ().int , padding = 22 )
105105
106106 def _async_check_keepalive (self ) -> None :
107- now = mqtt .time_func ()
108- # noinspection PyUnresolvedReferences
109- if (
110- now - self ._last_disconnection > self ._keepalive ** 2 # type: ignore[attr-defined]
111- and now - self ._last_device_msg_in > self ._keepalive # type: ignore[attr-defined]
112- ):
113- self ._ping_t = self ._last_device_msg_in
107+ now = mqtt .time_func ()
108+ # noinspection PyUnresolvedReferences
109+ if (
110+ now - self ._last_disconnection > self ._keepalive ** 2 # type: ignore[attr-defined]
111+ and now - self ._last_device_msg_in > self ._keepalive # type: ignore[attr-defined]
112+ ):
113+ self ._ping_t = self ._last_device_msg_in
114114
115115 def _check_keepalive (self ) -> None :
116116 self ._async_check_keepalive ()
You can’t perform that action at this time.
0 commit comments