diff options
author | Kim Alvefur <zash@zash.se> | 2021-03-18 16:24:46 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-03-18 16:24:46 +0100 |
commit | 72cb2e0362b195131334c3a2b1c20dbb5f7398c7 (patch) | |
tree | c67aa7cf5ac171a8db645fa60f723ee2b6f77a1b /plugins/mod_c2s.lua | |
parent | 846862e1e703be347136f5e3fe81e4c958cb8635 (diff) | |
download | prosody-72cb2e0362b195131334c3a2b1c20dbb5f7398c7.tar.gz prosody-72cb2e0362b195131334c3a2b1c20dbb5f7398c7.zip |
mod_c2s: Log about missing conn on async state changes
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r-- | plugins/mod_c2s.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index 57b7b0f7..8d4dcfb8 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -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 |