Skip to content

Commit

Permalink
Prevent maintenance task from being started multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDrivenMitch committed Oct 24, 2023
1 parent 44bec1f commit 2dafbd7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ class AxoniqConsoleRSocketClient(
* 60 seconds.
*/
fun start() {
if(this.maintenanceTask != null) {
return
}
this.maintenanceTask = executor.scheduleWithFixedDelay(
this::ensureConnectedAndAlive,
initialDelay,
Expand Down

0 comments on commit 2dafbd7

Please sign in to comment.