feat: set timeout to one second

This commit is contained in:
Luca 2024-09-05 16:59:50 +02:00
parent 49b7fdb832
commit 970c2fa1f3
1 changed files with 2 additions and 0 deletions

View File

@ -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