X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_component.lua;h=53ef4ed028b79670606f218fb55605fb5f917cf6;hb=163d2b9489196e5c9a532ecd4494afaddc414df6;hp=297609d830d1a55ffab5c797477cef2c9e83fd19;hpb=c78afc7a7acabaad191f978248e9b2bc25ecbc18;p=prosody.git diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 297609d8..53ef4ed0 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -317,6 +317,10 @@ function listener.ondisconnect(conn, err) end end +function listener.ondetach(conn) + sessions[conn] = nil; +end + module:provides("net", { name = "component"; private = true;