Browse Source

added opt parameter

Nicolas Cannasse 19 năm trước cách đây
mục cha
commit
aec4fd89f0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      std/haxe/remoting/SocketConnection.hx

+ 2 - 2
std/haxe/remoting/SocketConnection.hx

@@ -212,9 +212,9 @@ class SocketConnection extends AsyncConnection {
 
 	#if neko
 
-	public static function readAnswers( cnx : SocketConnection ) {
+	public static function readAnswers( cnx : SocketConnection, ?requests ) {
 		var sock : neko.net.Socket = cnx.__data;
-		while( cnx.__funs.length > 0 ) {
+		while( requests || cnx.__funs.length > 0 ) {
 			var c1 = decodeChar(sock.input.readChar());
 			var c2 = decodeChar(sock.input.readChar());
 			if( c1 == null || c2 == null )