gateway should not crash for clients that send Op 37 with missing channel ranges, instead ignore

This commit is contained in:
dank074
2026-03-06 03:34:00 -06:00
committed by Rory&
parent 3d7aa63681
commit e843d499ec

View File

@@ -212,7 +212,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
if (!channels) return;
}
if (!channels) throw new Error("Must provide channel ranges");
if (!channels) return;
const channel_id = Object.keys(channels || {})[0];
if (!channel_id) return;