Diff

net/server_event.lua @ 4377:705a8f14427b

net.server_event: Don't call listener.onincoming with data=nil when listener.onconnect is missing. onincoming's arguments shall always be non-nil.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 03 Sep 2011 02:42:50 +0500
parent 4111:4716c7645ad2
child 4399:1b4161970842
line wrap: on
line diff
--- a/net/server_event.lua	Sat Sep 03 01:07:35 2011 +0500
+++ b/net/server_event.lua	Sat Sep 03 02:42:50 2011 +0500
@@ -460,7 +460,6 @@
 	
 	-- Stub handlers
 	function interface_mt:onconnect()
-		return self:onincoming(nil);
 	end
 	function interface_mt:onincoming()
 	end