libs/lucid: revert main state on startup to prevent accumulation.
[project/luci.git] / libs / lucid / luasrc / lucid.lua
index 4feb159a50a6c662665e77d352fbe315b58b81ff..e1d73227f1cc4ca8c5bdce63fe4d39df688fdb4b 100644 (file)
@@ -43,6 +43,8 @@ local SSTATE = "/tmp/.lucid_store"
 
 --- Starts a new LuCId superprocess.
 function start()
+       state:revert(UCINAME, "main")
+
        prepare()
 
        local detach = cursor:get(UCINAME, "main", "daemonize")