Skip to content

Commit

Permalink
ISPN-5483 viewUpdateCondition never awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar committed May 19, 2015
1 parent 7951eac commit f952a3c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public class JGroupsTransport extends AbstractTransport implements MembershipLis

// these members are not valid until we have received the first view on a second thread
// and channelConnectedLatch is signaled
protected volatile int viewId;
protected volatile int viewId = -1;
protected volatile List<Address> members = null;
protected volatile Address coordinator = null;
protected volatile boolean isCoordinator = false;
Expand Down Expand Up @@ -239,7 +239,7 @@ public void waitForView(int viewId) throws InterruptedException {
viewUpdateLock.lock();
try {
while (channel != null && getViewId() < viewId) {
viewUpdateCondition.await();
viewUpdateCondition.await();
}
} finally {
viewUpdateLock.unlock();
Expand Down

0 comments on commit f952a3c

Please sign in to comment.