mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-22 02:34:57 +00:00
fix concurrent modification exception in ArbitrationDisputeList
This commit is contained in:
parent
74b2db7524
commit
3aa5fef8ab
1 changed files with 5 additions and 5 deletions
|
@ -57,12 +57,12 @@ public final class ArbitrationDisputeList extends DisputeList<Dispute> {
|
|||
|
||||
@Override
|
||||
public Message toProtoMessage() {
|
||||
|
||||
synchronized (this.list) {
|
||||
forEach(dispute -> checkArgument(dispute.getSupportType().equals(SupportType.ARBITRATION), "Support type has to be ARBITRATION"));
|
||||
|
||||
return protobuf.PersistableEnvelope.newBuilder().setArbitrationDisputeList(protobuf.ArbitrationDisputeList.newBuilder()
|
||||
.addAllDispute(ProtoUtil.collectionToProto(getList(), protobuf.Dispute.class))).build();
|
||||
}
|
||||
}
|
||||
|
||||
public static ArbitrationDisputeList fromProto(protobuf.ArbitrationDisputeList proto,
|
||||
CoreProtoResolver coreProtoResolver) {
|
||||
|
|
Loading…
Reference in a new issue