Diff

net/server_select.lua @ 3008:23915803adbf

net.server_select: Fix typo affecting connections with an onconnect listener that have data pending in the sendbuffer
author Matthew Wild <mwild1@gmail.com>
date Wed, 05 May 2010 17:12:32 +0100
parent 3003:48871a549b4c
child 3010:52146b82f295
child 3310:ddcab5be2a5e
line wrap: on
line diff
--- a/net/server_select.lua	Wed May 05 15:33:29 2010 +0100
+++ b/net/server_select.lua	Wed May 05 17:12:32 2010 +0100
@@ -629,7 +629,7 @@
 			listeners.onconnect(handler);
 			handler.sendbuffer = _sendbuffer;
 			if bufferqueuelen > 0 then
-				return _senddbuffer();
+				return _sendbuffer();
 			end
 		end
 	end