Mainloop is stopped on upload

This commit is contained in:
Ollo
2021-02-13 14:17:58 +01:00
parent d1908c99c4
commit d309315e28
2 changed files with 8 additions and 6 deletions

View File

@@ -95,8 +95,10 @@ function registerMqtt()
m=nil
t=nil
mqttConnected = false
if (looptimer ~= nil) then
looptimer:unregister()
if (mlt ~= nil) then
mlt:unregister()
else
print("main loop unstoppable")
end
collectgarbage()
mydofile("telnet")