ソースを参照

added opt parameter

Nicolas Cannasse 19 年 前
コミット
aec4fd89f0
1 ファイル変更2 行追加2 行削除
  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 )