From c880360870e85f8d97bbd14328ffa8f4859b8ee2 Mon Sep 17 00:00:00 2001 From: Presti Date: Thu, 10 Oct 2024 17:06:16 +0200 Subject: [PATCH] Code clean up. Signed-off-by: Presti --- .../presti/ree6/module/notifications/impl/TwitchSonic.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/presti/ree6/module/notifications/impl/TwitchSonic.java b/src/main/java/de/presti/ree6/module/notifications/impl/TwitchSonic.java index 53ec2a4c5..ae36eb093 100644 --- a/src/main/java/de/presti/ree6/module/notifications/impl/TwitchSonic.java +++ b/src/main/java/de/presti/ree6/module/notifications/impl/TwitchSonic.java @@ -132,7 +132,10 @@ public void run() { @Override public void unload() { - + twitchChannels.forEach(channel -> { + Main.getInstance().getNotifier().getTwitchClient().getClientHelper().disableStreamEventListener(channel.getIdentifier()); + Main.getInstance().getNotifier().getTwitchClient().getClientHelper().disableFollowEventListener(channel.getIdentifier()); + }); } @Override