comparison plugins/mod_c2s.lua @ 12309:926a6c5d13e7

mod_c2s,mod_s2s: Wrap callback to improve tracebacks Should make traces point here instead of timer dispatch, making debugging easier
author Kim Alvefur <zash@zash.se>
date Tue, 22 Feb 2022 12:35:31 +0100
parents 6a8c680b8677
children bc30e1b9ad89
comparison
equal deleted inserted replaced
12308:063ce658c181 12309:926a6c5d13e7
444 session:close{ condition = "system-shutdown", text = reason }; 444 session:close{ condition = "system-shutdown", text = reason };
445 end 445 end
446 446
447 -- Wait for them to close properly if they haven't already 447 -- Wait for them to close properly if they haven't already
448 if next(sessions) ~= nil then 448 if next(sessions) ~= nil then
449 add_task(stream_close_timeout+1, done); 449 add_task(stream_close_timeout+1, function () done() end);
450 module:log("info", "Waiting for sessions to close"); 450 module:log("info", "Waiting for sessions to close");
451 wait(); 451 wait();
452 end 452 end
453 453
454 end, -100); 454 end, -100);