ncannasse 9 năm trước cách đây
mục cha
commit
b73df2c16e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      hxd/net/NetworkHost.hx

+ 1 - 0
hxd/net/NetworkHost.hx

@@ -424,6 +424,7 @@ class NetworkHost {
 		}
 		else {
 			totalSentBytes += bytes.length * clients.length;
+			if( clients.length == 0 ) totalSentBytes += bytes.length; // still count for statistics
 			for( c in clients )
 				c.send(bytes);
 		}