diff --git a/src/main/java/io/wring/agents/Routine.java b/src/main/java/io/wring/agents/Routine.java index 7b6d16a..170fde9 100644 --- a/src/main/java/io/wring/agents/Routine.java +++ b/src/main/java/io/wring/agents/Routine.java @@ -96,8 +96,8 @@ public Routine(final Base bse) { public Routine(final Base bse, final int total) { this.base = bse; this.threads = total; - this.executor = Executors.newScheduledThreadPool( - total, new VerboseThreads(Routine.class) + this.executor = Executors.newSingleThreadScheduledExecutor( + new VerboseThreads(Routine.class) ); }