From: David ‘Bombe’ Roden Date: Thu, 12 Dec 2019 20:01:36 +0000 (+0100) Subject: 🔥 Remove ticker from web interface X-Git-Tag: v81^2~5^2~25 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4cdc52febe9b6f3a499da08805a1b03bcc1be852;p=Sone.git 🔥 Remove ticker from web interface --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index dc25dd4..50c63ee 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -27,8 +27,6 @@ import java.util.Map; import java.util.Set; import java.util.TimeZone; import java.util.UUID; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; import java.util.logging.Logger; import javax.annotation.Nonnull; import javax.annotation.Nullable; @@ -172,9 +170,6 @@ public class WebInterface implements SessionProvider { /** Notifications for sone inserts. */ private final Map soneInsertNotifications = new HashMap<>(); - /** Scheduled executor for time-based notifications. */ - private final ScheduledExecutorService ticker = Executors.newScheduledThreadPool(1); - @Inject public WebInterface(SonePlugin sonePlugin, Loaders loaders, ListNotificationFilter listNotificationFilter, PostVisibilityFilter postVisibilityFilter, ReplyVisibilityFilter replyVisibilityFilter, @@ -415,7 +410,6 @@ public class WebInterface implements SessionProvider { */ public void stop() { pageToadletRegistry.unregisterToadlets(); - ticker.shutdownNow(); } //