Skip to content

Commit 023ca0f

Browse files
committed
[kubed] re-init when reconnecting to mosq
1 parent c7bee35 commit 023ca0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openwrt/package/flukso/luasrc/kubed.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,9 @@ ut = uloop.timer(function()
832832
event:process()
833833
-- service the mosquitto loop
834834
if not mqtt:loop(MOSQ_TIMEOUT, MOSQ_MAX_PKTS) then
835-
mqtt:reconnect()
835+
if mqtt:reconnect() then
836+
event:process("e_init")
837+
end
836838
end
837839
end, ULOOP_TIMEOUT_MS)
838840

0 commit comments

Comments
 (0)