Skip to content

Commit

Permalink
mod_s2s: lint code a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
maranda committed Aug 13, 2018
1 parent 7278a02 commit 7507c5a
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 @@ -468,7 +468,7 @@ local function session_close(session, reason, remote_reason)
end
end

if reason == nil or reason == false then session.graceful_close = true; end
if not reason then session.graceful_close = true; end

session.sends2s("</stream:stream>");
function session.sends2s() return false; end
Expand Down

0 comments on commit 7507c5a

Please sign in to comment.