Mercurial > hg > FederatedLinda
diff src/fdl/FederatedLinda.java @ 100:270093b61001 fuchita
Fix meta.out(id,data) is not correctly handled.
author | one |
---|---|
date | Wed, 26 May 2010 15:45:56 +0900 |
parents | 96c63bc659d4 |
children | d671c78d3757 |
line wrap: on
line diff
--- a/src/fdl/FederatedLinda.java Wed May 26 15:31:01 2010 +0900 +++ b/src/fdl/FederatedLinda.java Wed May 26 15:45:56 2010 +0900 @@ -131,12 +131,12 @@ * @return 0 * @throws IOException */ - public int sync() throws IOException { + public int sync() { int key_num = 0; queueExec(); try { - if (selector.select()>0) { + if (selector.selectNow()>0) { for (Iterator<SelectionKey> it = selector.selectedKeys().iterator();it.hasNext(); ) { SelectionKey s = it.next(); it.remove(); @@ -166,8 +166,7 @@ * @return 0 * @throws IOException */ - public int sync(long mtimeout) - throws IOException { + public int sync(long mtimeout) { int key_num = 0; queueExec();