Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
coolz
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Oct 20, 2023
1 parent 7b80bd4 commit 9bbd733
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/async/deserializeAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,13 @@ function createTsonDeserializer(opts: TsonAsyncOptions) {
// we got the beginning of a new stream - probably because a reconnect
// we assume this new stream will have the same shape and restart the walker with the nonce

parseOptions.onReconnect?.();

assert(
parseOptions.reconnect,
"Stream got beginning of results but reconnecting is not enabled",
);

parseOptions.onReconnect?.();
await getStreamedValues(walker(value.nonce));
return;
}
Expand Down

0 comments on commit 9bbd733

Please sign in to comment.