Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 6257:9dace3a712f0
mod_s2s: Remove redundant setting of session.direction
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 22 May 2014 22:49:43 +0200 |
parent | 6256:d05627c89c99 |
child | 6259:36f611624987 |
comparison
equal
deleted
inserted
replaced
6256:d05627c89c99 | 6257:9dace3a712f0 |
---|---|
641 return (hosts[session.host] or prosody).events.fire_event("s2s-read-timeout", { session = session }); | 641 return (hosts[session.host] or prosody).events.fire_event("s2s-read-timeout", { session = session }); |
642 end | 642 end |
643 end | 643 end |
644 | 644 |
645 function listener.register_outgoing(conn, session) | 645 function listener.register_outgoing(conn, session) |
646 session.direction = "outgoing"; | |
647 sessions[conn] = session; | 646 sessions[conn] = session; |
648 initialize_session(session); | 647 initialize_session(session); |
649 end | 648 end |
650 | 649 |
651 function check_auth_policy(event) | 650 function check_auth_policy(event) |