feat: set timeout to one second
This commit is contained in:
parent
49b7fdb832
commit
970c2fa1f3
2
mqtt.lua
2
mqtt.lua
|
@ -43,6 +43,8 @@ function MqttClient:new (conn)
|
||||||
self.__index = self
|
self.__index = self
|
||||||
|
|
||||||
conn.read_varint = read_varint
|
conn.read_varint = read_varint
|
||||||
|
conn:setTimeout(1)
|
||||||
|
|
||||||
c.conn = conn
|
c.conn = conn
|
||||||
c.is_connecting = false
|
c.is_connecting = false
|
||||||
c.is_connected = false
|
c.is_connected = false
|
||||||
|
|
Loading…
Reference in New Issue