Comparison

core/s2smanager.lua @ 2858:d08771a2f617

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 2857:6036c4b75235
child 2877:1edeb8fe7d14
comparison
equal deleted inserted replaced
2857:6036c4b75235 2858:d08771a2f617
489 489
490 session.srv_hosts = nil; 490 session.srv_hosts = nil;
491 end 491 end
492 end 492 end
493 493
494 local function null_data_handler(data) log("debug", "Discarding data from destroyed s2s session: %s", data); end 494 local function null_data_handler(conn, data) log("debug", "Discarding data from destroyed s2s session: %s", data); end
495 495
496 function destroy_session(session) 496 function destroy_session(session)
497 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); 497 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host));
498 498
499 if session.direction == "outgoing" then 499 if session.direction == "outgoing" then