Software /
code /
prosody
Comparison
core/s2smanager.lua @ 7947:24170d74b00b
core: Split some very long lines [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 04 Mar 2017 17:49:48 +0100 |
parent | 6779:6236668da30a |
child | 7950:f91e7ec9654e |
comparison
equal
deleted
inserted
replaced
7945:1f4a0e0b7167 | 7947:24170d74b00b |
---|---|
68 return setmetatable(session, resting_session); | 68 return setmetatable(session, resting_session); |
69 end | 69 end |
70 | 70 |
71 local function destroy_session(session, reason) | 71 local function destroy_session(session, reason) |
72 if session.destroyed then return; end | 72 if session.destroyed then return; end |
73 (session.log or log)("debug", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)..(reason and (": "..reason) or "")); | 73 (session.log or log)("debug", "Destroying "..tostring(session.direction) |
74 .." session "..tostring(session.from_host).."->"..tostring(session.to_host) | |
75 ..(reason and (": "..reason) or "")); | |
74 | 76 |
75 if session.direction == "outgoing" then | 77 if session.direction == "outgoing" then |
76 hosts[session.from_host].s2sout[session.to_host] = nil; | 78 hosts[session.from_host].s2sout[session.to_host] = nil; |
77 session:bounce_sendq(reason); | 79 session:bounce_sendq(reason); |
78 elseif session.direction == "incoming" then | 80 elseif session.direction == "incoming" then |