Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/linejs/base/request/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ export class RequestClient {
headers: Record<string, string | undefined> = {},
timeout = this.client.config.timeout,
): Promise<T> {
if ((this.client as any)?.disabled) {
throw new InternalError(
"ClientClosed",
"Request aborted: client has been disabled (logged out)",
);
}
const res = await this.requestCore(
path,
value,
Expand Down
Loading