File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,12 @@ workerIds.forEach(function (workerId) {
58
58
merged . diagnostics = NormalizedMessage . deduplicate ( merged . diagnostics ) ;
59
59
merged . lints = NormalizedMessage . deduplicate ( merged . lints ) ;
60
60
61
- process . send ( merged ) ;
61
+ try {
62
+ process . send ( merged ) ;
63
+ } catch ( e ) {
64
+ // channel closed...
65
+ process . exit ( ) ;
66
+ }
62
67
}
63
68
} ) ;
64
69
} ) ;
Original file line number Diff line number Diff line change @@ -31,10 +31,15 @@ function run (cancellationToken) {
31
31
}
32
32
33
33
if ( ! cancellationToken . isCancellationRequested ( ) ) {
34
- process . send ( {
35
- diagnostics : diagnostics ,
36
- lints : lints
37
- } ) ;
34
+ try {
35
+ process . send ( {
36
+ diagnostics : diagnostics ,
37
+ lints : lints
38
+ } ) ;
39
+ } catch ( e ) {
40
+ // channel closed...
41
+ process . exit ( ) ;
42
+ }
38
43
}
39
44
}
40
45
You can’t perform that action at this time.
0 commit comments