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 a2950e0 commit f58fe79Copy full SHA for f58fe79
dev/src/watch.ts
@@ -495,6 +495,12 @@ abstract class Watch<
495
'Closing inactive stream'
496
);
497
backendStream.emit('end');
498
+ backendStream.on('error', () => {
499
+ // Note that emitting 'end' above does not prevent the Duplex
500
+ // from receiving potential errors from the backend. Since the
501
+ // stream is no longer active (`isActive` is false), we
502
+ // swallow / ignore any errors it may receive.
503
+ });
504
return;
505
}
506
logger('Watch.initStream', this.requestTag, 'Opened new stream');
0 commit comments