mod_c2s: Log about missing conn on async state changes

This commit is contained in:
Kim Alvefur 2021-03-18 16:24:46 +01:00
parent 846862e1e7
commit 72cb2e0362

View file

@ -228,12 +228,16 @@ end, 200);
function runner_callbacks:ready()
if self.data.conn then
self.data.conn:resume();
else
(self.data.log or log)("debug", "Session has no connection to resume");
end
end
function runner_callbacks:waiting()
if self.data.conn then
self.data.conn:pause();
else
(self.data.log or log)("debug", "Session has no connection to pause while waiting");
end
end