# HG changeset patch # User tmolitor # Date 1616074232 -3600 # Node ID 133e8ed291feaedf7a038d584c8100b30d791f55 # Parent 8d6e013377fae4b740bcba6d9938f48049347d54 mod_c2s: Don't throw errors in async code when connections are gone Fixes #1507 diff -r 8d6e013377fa -r 133e8ed291fe plugins/mod_c2s.lua --- a/plugins/mod_c2s.lua Sat Feb 27 20:45:45 2021 +0100 +++ b/plugins/mod_c2s.lua Thu Mar 18 14:30:32 2021 +0100 @@ -226,11 +226,11 @@ end, 200); function runner_callbacks:ready() - self.data.conn:resume(); + if self.data["conn"] ~= nil then self.data.conn:resume(); end end function runner_callbacks:waiting() - self.data.conn:pause(); + if self.data["conn"] ~= nil then self.data.conn:pause(); end end function runner_callbacks:error(err)