Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
11510:d241ca8272fe | 11511:cab64a0aad49 |
---|---|
226 end, 200); | 226 end, 200); |
227 | 227 |
228 function runner_callbacks:ready() | 228 function runner_callbacks:ready() |
229 if self.data.conn then | 229 if self.data.conn then |
230 self.data.conn:resume(); | 230 self.data.conn:resume(); |
231 else | |
232 (self.data.log or log)("debug", "Session has no connection to resume"); | |
231 end | 233 end |
232 end | 234 end |
233 | 235 |
234 function runner_callbacks:waiting() | 236 function runner_callbacks:waiting() |
235 if self.data.conn then | 237 if self.data.conn then |
236 self.data.conn:pause(); | 238 self.data.conn:pause(); |
239 else | |
240 (self.data.log or log)("debug", "Session has no connection to pause while waiting"); | |
237 end | 241 end |
238 end | 242 end |
239 | 243 |
240 function runner_callbacks:error(err) | 244 function runner_callbacks:error(err) |
241 (self.data.log or log)("error", "Traceback[c2s]: %s", err); | 245 (self.data.log or log)("error", "Traceback[c2s]: %s", err); |