diff options
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r-- | plugins/mod_c2s.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index c648850f..f8675258 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -226,11 +226,11 @@ module:hook_global("user-password-changed", function(event) end, 200); function runner_callbacks:ready() - self.data.conn:resume(); + if self.data["conn"] ~= nil then self.data.conn:resume(); end end function runner_callbacks:waiting() - self.data.conn:pause(); + if self.data["conn"] ~= nil then self.data.conn:pause(); end end function runner_callbacks:error(err) |