# HG changeset patch # User Matthew Wild # Date 1227071442 0 # Node ID 52f75260a22d859a390ff7490a654230bd571c46 # Parent a9e02b5c58d2ea55903b53fe00f04e4bd054ebb8 Incorrect function set as callback diff -r a9e02b5c58d2 -r 52f75260a22d net/xmppserver_listener.lua --- a/net/xmppserver_listener.lua Wed Nov 19 05:10:16 2008 +0000 +++ b/net/xmppserver_listener.lua Wed Nov 19 05:10:42 2008 +0000 @@ -5,7 +5,7 @@ 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 @@ 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;