mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
fix concurrent modification exception fetching disputes
This commit is contained in:
parent
17d94f346c
commit
ab94b2d6fa
@ -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,8 +222,10 @@ public abstract class DisputeManager<T extends DisputeList<Dispute>> extends Sup
|
||||
}
|
||||
|
||||
public ObservableList<Dispute> getDisputesAsObservableList() {
|
||||
synchronized(disputeListService.getDisputeList()) {
|
||||
return disputeListService.getObservableList();
|
||||
}
|
||||
}
|
||||
|
||||
public String getNrOfDisputes(boolean isBuyer, Contract contract) {
|
||||
return disputeListService.getNrOfDisputes(isBuyer, contract);
|
||||
|
Loading…
Reference in New Issue
Block a user