Software /
code /
prosody
Comparison
core/s2smanager.lua @ 2622:5ced53147f86
sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 12 Feb 2010 17:27:53 +0000 |
parent | 2621:4d0f9f50fdd8 |
child | 2676:4516888fc42d |
comparison
equal
deleted
inserted
replaced
2621:4d0f9f50fdd8 | 2622:5ced53147f86 |
---|---|
506 | 506 |
507 session.srv_hosts = nil; | 507 session.srv_hosts = nil; |
508 end | 508 end |
509 end | 509 end |
510 | 510 |
511 local function null_data_handler(data) log("debug", "Discarding data from destroyed s2s session: %s", data); end | 511 local function null_data_handler(conn, data) log("debug", "Discarding data from destroyed s2s session: %s", data); end |
512 | 512 |
513 function destroy_session(session, reason) | 513 function destroy_session(session, reason) |
514 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); | 514 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); |
515 | 515 |
516 if session.direction == "outgoing" then | 516 if session.direction == "outgoing" then |