diff --git a/src/main/java/com/sparrowwallet/sparrow/AppServices.java b/src/main/java/com/sparrowwallet/sparrow/AppServices.java index b7502190..50ae41c4 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppServices.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppServices.java @@ -99,6 +99,10 @@ public class AppServices { }; private void restartService(ScheduledService service) { + if(service.isRunning()) { + service.cancel(); + } + if(service.getState() == Worker.State.CANCELLED) { service.reset(); }