diff options
-rw-r--r-- | net/xmppserver_listener.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index 3c038b83..53a9d354 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -100,10 +100,10 @@ local function session_close(session, reason) end end session.sends2s("</stream:stream>"); - if session.notopen or not session.conn.close() then - session.conn.close(true); -- Force FIXME: timer? + if session.notopen or not session.conn:close() then + session.conn:close(true); -- Force FIXME: timer? end - session.conn.close(); + session.conn:close(); xmppserver.ondisconnect(session.conn, "stream error"); end end |