Skip to content

Commit

Permalink
Made RouterStubManager.remove() synchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Jul 12, 2023
1 parent 1f239ef commit 7b1d08d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/org/jgroups/stack/RouterStubManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ protected boolean add(Target target) {

protected boolean remove(RouterStub stub) {
if(stub == null) return false;
boolean retval=this.stubs.remove(stub);
boolean retval=false;
synchronized(stubs) {
retval=this.stubs.remove(stub);
}
stub.destroy();
return retval;
}
Expand Down

0 comments on commit 7b1d08d

Please sign in to comment.