Changeset

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
parents 4376:99277a1abe58
children 4378:5e1f4af11626
files net/server_event.lua
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
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