ncannasse 9 年之前
父节点
当前提交
1a85f9cd98
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      hxd/net/NetworkHost.hx

+ 4 - 1
hxd/net/NetworkHost.hx

@@ -113,6 +113,10 @@ class NetworkClient {
 
 	function beginRPCResult() {
 		host.flush();
+
+		if( host.logger != null )
+			host.logger("RPC RESULT #" + resultID);
+
 		var ctx = host.ctx;
 		host.hasData = true;
 		host.targetClient = this;
@@ -258,7 +262,6 @@ class NetworkHost {
 		if( !isAuth )
 			return true;
 		if( owner == null ) {
-			if( checkEOM ) ctx.addByte(EOM);
 			doSend();
 			targetClient = null;
 			return true;