mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
fix concurrent modification exception fetching disputes
This commit is contained in:
parent
17d94f346c
commit
ab94b2d6fa
2 changed files with 4 additions and 2 deletions
|
@ -71,7 +71,7 @@ public class CoreDisputesService {
|
|||
}
|
||||
|
||||
public List<Dispute> getDisputes() {
|
||||
return arbitrationManager.getDisputesAsObservableList();
|
||||
return new ArrayList<>(arbitrationManager.getDisputesAsObservableList());
|
||||
}
|
||||
|
||||
public Dispute getDispute(String tradeId) {
|
||||
|
|
|
@ -222,7 +222,9 @@ public abstract class DisputeManager<T extends DisputeList<Dispute>> extends Sup
|
|||
}
|
||||
|
||||
public ObservableList<Dispute> getDisputesAsObservableList() {
|
||||
return disputeListService.getObservableList();
|
||||
synchronized(disputeListService.getDisputeList()) {
|
||||
return disputeListService.getObservableList();
|
||||
}
|
||||
}
|
||||
|
||||
public String getNrOfDisputes(boolean isBuyer, Contract contract) {
|
||||
|
|
Loading…
Reference in a new issue