aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-18 16:24:46 +0100
committerKim Alvefur <zash@zash.se>2021-03-18 16:24:46 +0100
commit72cb2e0362b195131334c3a2b1c20dbb5f7398c7 (patch)
treec67aa7cf5ac171a8db645fa60f723ee2b6f77a1b /plugins/mod_c2s.lua
parent846862e1e703be347136f5e3fe81e4c958cb8635 (diff)
downloadprosody-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.lua4
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