diff src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java @ 74:f1938dd3b518

don't heap space error.
author oc
date Mon, 28 Apr 2014 18:25:23 +0900
parents 21108e863b8a
children cdf7bbe45885
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java	Fri Apr 18 11:17:34 2014 +0900
+++ b/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java	Mon Apr 28 18:25:23 2014 +0900
@@ -182,6 +182,8 @@
 					os.write(b.array(), b.position(), b.limit());
 				}
 				os.flush();
+				bufs = null;
+				multicastqueue.heapAvailable();
 			}
 		};
 		clients++;