Software /
code /
prosody
Diff
plugins/mod_c2s.lua @ 11511:cab64a0aad49 0.11
mod_c2s: Log about missing conn on async state changes
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Mar 2021 16:24:46 +0100 |
parent | 11510:d241ca8272fe |
child | 11514:11186af62c87 |
child | 11540:1937b3c3efb5 |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Thu Mar 18 16:23:47 2021 +0100 +++ b/plugins/mod_c2s.lua Thu Mar 18 16:24:46 2021 +0100 @@ -228,12 +228,16 @@ 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