aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-28 17:40:37 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-28 17:40:37 +0000
commit4267a24ab79792f5e8ea993f84a6902beaabe94a (patch)
tree041ca7ff332be2cf8e124c24ab5132dbdc926e2c /net
parentf0b237f8bd70aa6645a282534caa491d3d59cd85 (diff)
downloadprosody-4267a24ab79792f5e8ea993f84a6902beaabe94a.tar.gz
prosody-4267a24ab79792f5e8ea993f84a6902beaabe94a.zip
xmppserver_listener: Update for new server API, fixes traceback when closing s2s connections
Diffstat (limited to 'net')
-rw-r--r--net/xmppserver_listener.lua6
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