Update PDAB Wrappers
All checks were successful
Run Discord Radio Bot v3 Tests / test (push) Successful in 46s

- Close the socket server when there are no active connections
This commit is contained in:
Logan Cusano
2024-04-14 23:59:04 -04:00
parent 2c9383824e
commit d7b7b04f78

View File

@@ -1,4 +1,4 @@
import { connectToChannel, leaveVoiceChannel, checkIfConnectedToVC, initDiscordBotClient, requestDiscordUsername, requestDiscordID, requestDiscordClientClose } from './pdabHandler.mjs';
import { connectToChannel, leaveVoiceChannel, checkIfConnectedToVC, initDiscordBotClient, requestDiscordUsername, requestDiscordID, requestDiscordClientClose, closePdabSocketServer } from './pdabHandler.mjs';
import { openOP25, closeOP25 } from '../op25Handler/op25Handler.mjs';
let activeDiscordClient = undefined;
@@ -50,6 +50,9 @@ export const leaveDiscordVC = async (guildId) => {
// Close the python client
await requestDiscordClientClose();
// Close the IPC server
await closePdabSocketServer();
}
}
}