Mercurial > hg > FederatedLinda
changeset 27:1acf423ffdcb
*** empty log message ***
author | kono |
---|---|
date | Wed, 20 Aug 2008 17:16:17 +0900 |
parents | d7d70edc9c7c |
children | 132c9bc28d6b |
files | src/fdl/MetaLinda.java |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fdl/MetaLinda.java Wed Aug 20 17:05:33 2008 +0900 +++ b/src/fdl/MetaLinda.java Wed Aug 20 17:16:17 2008 +0900 @@ -101,12 +101,14 @@ public int sync(long timeout) { fds.checkTuple(timeout); - for(PSXReply r=replies;r!=null&&r.next!=null;r = r.next) { + PSXReply r; + for(r=replies;r!=null&&r.next!=null;r = r.next) { if (r.next.ready()) { + // ready() may modify replies list r.next = r.next.next; } - if(r!=null) last = (MetaReply)r; } + last = (MetaReply)r; if (fdl!=null) { try { fdl.sync(timeout);