Skip to content

Commit

Permalink
fix: fix window close after error
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm authored and 3y3 committed Dec 2, 2024
1 parent 9f37624 commit 5c3978d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/consumer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,17 @@ export class Consumer {
past: string;
}[];

if (window) {
this.unsetWindow();
}

return result;
} catch (error) {
if (error instanceof CriticalProcessingError) {
error.fill(this);
}

throw error;
} finally {
if (window) {
this.unsetWindow();
}
}
};

Expand Down

0 comments on commit 5c3978d

Please sign in to comment.