From 0c6f3a0b4c95cf8044f33eb66db74f51595623c9 Mon Sep 17 00:00:00 2001 From: Rainnny Date: Thu, 4 Jul 2024 14:50:45 +0000 Subject: [PATCH] silly resource leak nick --- .../fascinated/bat/features/tmdb/command/MovieSubCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/bat/features/tmdb/command/MovieSubCommand.java b/src/main/java/cc/fascinated/bat/features/tmdb/command/MovieSubCommand.java index 6c3be71..7e6f435 100644 --- a/src/main/java/cc/fascinated/bat/features/tmdb/command/MovieSubCommand.java +++ b/src/main/java/cc/fascinated/bat/features/tmdb/command/MovieSubCommand.java @@ -106,7 +106,7 @@ public class MovieSubCommand extends BatCommand implements EventListener { @Override public void onButtonInteraction(BatGuild guild, @NonNull BatUser user, @NonNull ButtonInteractionEvent event) { - Map params = userCommands.get(user.getId()); + Map params = userCommands.remove(user.getId()); if (params == null) { return; }