From 3cc1821246428d65af5d205b925e001c69765a5e Mon Sep 17 00:00:00 2001 From: lesleyrs <19632758+lesleyrs@users.noreply.github.com> Date: Wed, 10 Jul 2024 02:18:33 +0200 Subject: [PATCH] fix --- src/js/jagex2/io/ClientWorkerStream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/jagex2/io/ClientWorkerStream.ts b/src/js/jagex2/io/ClientWorkerStream.ts index 57a7c79a..7e332b55 100644 --- a/src/js/jagex2/io/ClientWorkerStream.ts +++ b/src/js/jagex2/io/ClientWorkerStream.ts @@ -196,7 +196,7 @@ class WorkerReader { while (this.total < len) { await Promise.race([ new Promise((resolve): ((value: PromiseLike<((data: WorkerEvent | null) => void) | null>) => void) => (this.callback = resolve)), - sleep(20000).then((): void => { + sleep(100000).then((): void => { throw new Error('WorkerReader timed out or closed while reading.'); }) ]);