aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_proxy65.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-01 18:07:37 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-01 18:07:37 +0000
commit8db085eb2976736ab1ef118b203d2832c3107334 (patch)
treeb104779d1388e001af51290cf2429ed73e77a514 /plugins/mod_proxy65.lua
parent9d6219b596ccf58fc409a7a84b6063b1c2955222 (diff)
downloadprosody-8db085eb2976736ab1ef118b203d2832c3107334.tar.gz
prosody-8db085eb2976736ab1ef118b203d2832c3107334.zip
mod_proxy65: Fix for old-style closing of connections (another source of tracebacks with libevent enabled)
Diffstat (limited to 'plugins/mod_proxy65.lua')
-rw-r--r--plugins/mod_proxy65.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_proxy65.lua b/plugins/mod_proxy65.lua
index 2cfbe7b6..5c9ae329 100644
--- a/plugins/mod_proxy65.lua
+++ b/plugins/mod_proxy65.lua
@@ -91,12 +91,12 @@ function connlistener.onincoming(conn, data)
conn:lock_read(true)
else
module:log("warn", "Neither data transfer nor initial connect of a participator of a transfer.")
- conn.close();
+ conn:close();
end
else
if data ~= nil then
module:log("warn", "unknown connection with no authentication data -> closing it");
- conn.close();
+ conn:close();
end
end
end
@@ -107,9 +107,9 @@ function connlistener.ondisconnect(conn, err)
if session.sha and transfers[session.sha] then
local initiator, target = transfers[session.sha].initiator, transfers[session.sha].target;
if initiator == conn and target ~= nil then
- target.close();
+ target:close();
elseif target == conn and initiator ~= nil then
- initiator.close();
+ initiator:close();
end
transfers[session.sha] = nil;
end