Mercurial > hg > Applications > TreeVNC
changeset 76:ef3586035d25
minor change
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 29 Apr 2014 13:30:39 +0900 |
parents | bbee0f101911 |
children | cdf7bbe45885 |
files | src/main/java/jp/ac/u_ryukyu/treevnc/MulticastQueue.java |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/MulticastQueue.java Tue Apr 29 11:26:36 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/MulticastQueue.java Tue Apr 29 13:30:39 2014 +0900 @@ -26,12 +26,13 @@ { ByteBuffer b=null; while(true){ - try{ + try { b = ByteBuffer.allocate(size); - }catch(OutOfMemoryError e){ - System.err.println("multicastqueue : wait for heap : " + e); + } catch (OutOfMemoryError e) { + b = null; + System.err.println("multicastqueue : wait for heap : " + e); } - if(b!=null){ + if (b!=null) { break; } try {