Comparison

plugins/mod_s2s.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
parent 12301:4f1fe6eb1ddb
child 12311:bc30e1b9ad89
comparison
equal deleted inserted replaced
12308:063ce658c181 12309:926a6c5d13e7
985 end 985 end
986 986
987 -- Wait for them to close properly if they haven't already 987 -- Wait for them to close properly if they haven't already
988 if next(sessions) ~= nil then 988 if next(sessions) ~= nil then
989 module:log("info", "Waiting for sessions to close"); 989 module:log("info", "Waiting for sessions to close");
990 add_task(stream_close_timeout + 1, done); 990 add_task(stream_close_timeout + 1, function () done() end);
991 wait(); 991 wait();
992 end 992 end
993 993
994 end, -200); 994 end, -200);
995 995