diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-19 05:10:42 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-19 05:10:42 +0000 |
commit | 20d5d438a67cefa3dc13f0ae5cb2e293beecd36e (patch) | |
tree | 524dbec719c4ac790261b28291e9d8bad18569fa | |
parent | 0da8b7b741f592c1e2b7d54639d81a485ee8d8da (diff) | |
download | prosody-20d5d438a67cefa3dc13f0ae5cb2e293beecd36e.tar.gz prosody-20d5d438a67cefa3dc13f0ae5cb2e293beecd36e.zip |
Incorrect function set as callback
-rw-r--r-- | net/xmppserver_listener.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index 3ba539e1..51116a5e 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -5,7 +5,7 @@ local init_xmlhandlers = require "core.xmlhandlers" local sm_new_session = require "core.sessionmanager".new_session; local s2s_new_incoming = require "core.s2smanager".new_incoming; local s2s_streamopened = require "core.s2smanager".streamopened; -local s2s_streamclosed = require "core.s2smanager".streamopened; +local s2s_streamclosed = require "core.s2smanager".streamclosed; local s2s_destroy_session = require "core.s2smanager".destroy_session; local stream_callbacks = { streamopened = s2s_streamopened, streamclosed = s2s_streamclosed }; @@ -112,6 +112,7 @@ end function xmppserver.disconnect(conn) local session = sessions[conn]; if session then + (session.log or log)("info", "s2s disconnected: %s->%s", tostring(session.from_host), tostring(session.to_host)); s2s_destroy_session(session); sessions[conn] = nil; session = nil; |