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 dev/src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,12 @@ abstract class Watch<
'Closing inactive stream'
);
backendStream.emit('end');
backendStream.on('error', () => {
// Note that emitting 'end' above does not prevent the Duplex
// from receiving potential errors from the backend. Since the
// stream is no longer active (`isActive` is false), we
// swallow / ignore any errors it may receive.
});
return;
}
logger('Watch.initStream', this.requestTag, 'Opened new stream');
Expand Down
Loading