Skip to content

Commit

Permalink
mod_s2s: properly re-do previous commit, do not attempt to close outg…
Browse files Browse the repository at this point in the history
…oings not yet opened.
  • Loading branch information
maranda committed Oct 16, 2013
1 parent d36c921 commit 170be1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/mod_s2s/mod_s2s.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ local function time_and_clean(_session, now)
module:log("debug", "checking outgoing streams for inactivity...");
for _, host in pairs(hosts) do
for domain, session in pairs(host.s2sout) do
if now - (session.last_send or 0) > max_inactivity then session:close(); end
if not session.notopen and now - session.last_send > max_inactivity then session:close(); end
end
end
last_inactive_clean = now;
Expand Down

0 comments on commit 170be1b

Please sign in to comment.