We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35fde18 commit 373ad30Copy full SHA for 373ad30
packages/core/src/utils/queue.ts
@@ -117,7 +117,7 @@ export class Queue {
117
await writer.write(item.data);
118
item.sent = true;
119
} catch (error) {
120
- if (error?.code === 'ECONNRESET') {
+ if (error?.code === 'ECONNRESET' || error?.code === 'ERR_INVALID_STATE') {
121
writer.releaseLock();
122
this.lock = false;
123
throw error;
0 commit comments