Skip to content

Commit

Permalink
release offline 2004scape
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyrs committed Jul 9, 2024
1 parent ac5efb6 commit c11056c
Show file tree
Hide file tree
Showing 17,040 changed files with 2,721,252 additions and 2 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 1 addition & 2 deletions src/js/jagex2/io/ClientWorkerStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ class WorkerReader {
throw new Error('WorkerReader is closed!');
}
const event: WorkerEvent = new WorkerEvent(new Uint8Array(e.data));
console.log('available data: ', event.available); // NOTE: remove this
if (this.event) {
this.queue.addTail(event);
} else {
Expand Down Expand Up @@ -197,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(2000).then((): void => {
sleep(20000).then((): void => {
throw new Error('WorkerReader timed out or closed while reading.');
})
]);
Expand Down
Loading

0 comments on commit c11056c

Please sign in to comment.