Skip to content

Commit

Permalink
chore: stop infinite loop for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ablax committed Aug 8, 2024
1 parent 2d812dc commit 2b72a68
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/com/limechain/sync/warpsync/WarpSyncMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ public void start() {
this.networkService.updateCurrentSelectedPeerWithNextBootnode();
this.warpSyncAction = new RequestFragmentsAction(initStateHash);

new Thread(() -> {
while (this.warpSyncAction.getClass() != FinishedAction.class) {
this.handleState();
this.nextState();
}

finishWarpSync();
}).start();
// new Thread(() -> {
// while (this.warpSyncAction.getClass() != FinishedAction.class) {
// this.handleState();
// this.nextState();
// }
//
// finishWarpSync();
// }).start();
}

public void stop() {
Expand Down

0 comments on commit 2b72a68

Please sign in to comment.