mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
mod_c2s: Log about missing conn on async state changes
This commit is contained in:
parent
846862e1e7
commit
72cb2e0362
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue