core/s2smanager.lua

changeset 2749
8dc5f3651501
parent 2748
85a242cd1bc4
child 2892
9f214431de29
equal deleted inserted replaced
2748:85a242cd1bc4 2749:8dc5f3651501
531 function session.data(data) log("debug", "Discarding data received from resting session: %s", tostring(data)); end 531 function session.data(data) log("debug", "Discarding data received from resting session: %s", tostring(data)); end
532 return setmetatable(session, resting_session); 532 return setmetatable(session, resting_session);
533 end 533 end
534 534
535 function destroy_session(session, reason) 535 function destroy_session(session, reason)
536 if session.destroyed then return; end
536 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); 537 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host));
537 538
538 if session.direction == "outgoing" then 539 if session.direction == "outgoing" then
539 hosts[session.from_host].s2sout[session.to_host] = nil; 540 hosts[session.from_host].s2sout[session.to_host] = nil;
540 bounce_sendq(session, reason); 541 bounce_sendq(session, reason);

mercurial