From 7ec03370c3352d03aa8e5e6f445c9130e4dbc9ed Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Sun, 22 Apr 2018 12:30:48 +0300 Subject: [PATCH] #59 single thread --- src/main/java/io/wring/agents/Routine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ); }