diff src/myVncProxy/MulticastQueue.java @ 109:3f73ebf918bd

add time out to avoid memory overlow caused by suspended clients.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 05 Aug 2011 12:08:17 +0900
parents 0cbe556e2c54
children 7e60020f0a72
line wrap: on
line diff
--- a/src/myVncProxy/MulticastQueue.java	Fri Aug 05 10:57:05 2011 +0900
+++ b/src/myVncProxy/MulticastQueue.java	Fri Aug 05 12:08:17 2011 +0900
@@ -36,12 +36,12 @@
 		public T poll()
 		{
 			Node<T> next = null;
-			T item;
+			T item = null;
 			do {
 				try {
 					next = node.next();
 				}catch(InterruptedException _e){
-					_e.printStackTrace();
+					continue;
 				}
 				item = node.getItem();
 				node = next;