plugins/mod_c2s.lua
branch0.11
changeset 11514 d241ca8272fe
parent 11513 dfdec3f9ccb1
child 11515 cab64a0aad49
--- a/plugins/mod_c2s.lua	Wed Mar 17 12:47:16 2021 +0100
+++ b/plugins/mod_c2s.lua	Thu Mar 18 16:23:47 2021 +0100
@@ -226,11 +226,15 @@
 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)