diff options
Diffstat (limited to 'helix-loader/src')
-rw-r--r-- | helix-loader/src/grammar.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs index d2769d81..7aa9bc83 100644 --- a/helix-loader/src/grammar.rs +++ b/helix-loader/src/grammar.rs @@ -133,7 +133,9 @@ where let tx = tx.clone(); pool.execute(move || { - tx.send(job(grammar)).unwrap(); + // Ignore any SendErrors, if any job in another thread has encountered an + // error the Receiver will be closed causing this send to fail. + let _ = tx.send(job(grammar)); }); } |