Commit c1b17cf 1 parent 89007c4 commit c1b17cf Copy full SHA for c1b17cf
File tree 1 file changed +8
-6
lines changed
desktop/src/main/java/haveno/desktop/main/settings/network
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -508,12 +508,14 @@ private boolean isPublicNodesDisabled() {
508
508
}
509
509
510
510
private void updateP2PTable () {
511
- if (connectionService .isShutDownStarted ()) return ; // ignore if shutting down
512
- p2pPeersTableView .getItems ().forEach (P2pNetworkListItem ::cleanup );
513
- p2pNetworkListItems .clear ();
514
- p2pNetworkListItems .setAll (p2PService .getNetworkNode ().getAllConnections ().stream ()
515
- .map (connection -> new P2pNetworkListItem (connection , clockWatcher ))
516
- .collect (Collectors .toList ()));
511
+ UserThread .execute (() -> {
512
+ if (connectionService .isShutDownStarted ()) return ; // ignore if shutting down
513
+ p2pPeersTableView .getItems ().forEach (P2pNetworkListItem ::cleanup );
514
+ p2pNetworkListItems .clear ();
515
+ p2pNetworkListItems .setAll (p2PService .getNetworkNode ().getAllConnections ().stream ()
516
+ .map (connection -> new P2pNetworkListItem (connection , clockWatcher ))
517
+ .collect (Collectors .toList ()));
518
+ });
517
519
}
518
520
519
521
private void updateMoneroConnectionsTable () {
You can’t perform that action at this time.
0 commit comments