diff --git a/services/discord-gateway/src/modules/voice-recording/streamWatchReceiver.ts b/services/discord-gateway/src/modules/voice-recording/streamWatchReceiver.ts index 4f9c71b9..363c4e55 100644 --- a/services/discord-gateway/src/modules/voice-recording/streamWatchReceiver.ts +++ b/services/discord-gateway/src/modules/voice-recording/streamWatchReceiver.ts @@ -271,7 +271,7 @@ function connectWatch( handleUdpMessage(watchKey, netAny, uidProps, msg); }; - net.on("stateChange", (newState, oldState) => { + net.on("stateChange", (oldState, newState) => { const s = newState as { code?: number }; const code = s?.code; const oldCode = (oldState as { code?: number })?.code;