aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index f3259ed2..57b7b0f7 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -226,11 +226,15 @@ module:hook_global("user-password-changed", function(event)
end, 200);
function runner_callbacks:ready()
- if self.data["conn"] ~= nil then self.data.conn:resume(); end
+ if self.data.conn then
+ self.data.conn:resume();
+ end
end
function runner_callbacks:waiting()
- if self.data["conn"] ~= nil then self.data.conn:pause(); end
+ if self.data.conn then
+ self.data.conn:pause();
+ end
end
function runner_callbacks:error(err)