fix: discord disconnect message broken (blame VoiceChatPlugin! not discord's fault!)

This commit is contained in:
ChomeNS
2025-04-10 07:45:36 +07:00
parent 49209ab8b4
commit 76eadb1472
3 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
public class Bot extends SessionAdapter {
private final ArrayList<Listener> listeners = new ArrayList<>();
private final List<Listener> listeners = new ArrayList<>();
public final String host;
public final int port;

View File

@@ -206,7 +206,7 @@ public class VoiceChatPlugin extends Bot.Listener implements Runnable {
@Override
public void disconnected (final DisconnectedEvent event) {
socket.close();
if (socket != null) socket.close();
groups.clear();
running = false;