Add missing bootstrap flag check

This commit is contained in:
Manfred Karrer 2016-03-18 01:31:46 +01:00
parent 47c00e77d6
commit 0731ab3bb3

View File

@ -168,12 +168,16 @@ public class TraderDisputeView extends ActivatableView<VBox, Void> {
disputeDirectMessageListListener = c -> scrollToBottom();
p2PService.addP2PServiceListener(new BootstrapListener() {
@Override
public void onBootstrapComplete() {
isBootstrapped = true;
}
});
if (!p2PService.isBootstrapped()) {
p2PService.addP2PServiceListener(new BootstrapListener() {
@Override
public void onBootstrapComplete() {
isBootstrapped = true;
}
});
} else {
isBootstrapped = true;
}
}
@Override