We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 683c9b9 commit f591678Copy full SHA for f591678
1 file changed
src/python_spy.rs
@@ -232,9 +232,13 @@ impl PythonSpy {
232
});
233
234
let join_handle = std::thread::spawn(move || {
235
- // This can fail if the receiver has timed out; silently ignore this, because we
236
- // don't care (the worker thread has already exceeded the timeout)
237
- let _ = tx.send(process.lock());
+ // This can fail if the receiver in the main thread has timed out; silently ignore
+ // this, because we don't care (this only happens when the worker thread has
+ // already exceeded the timeout).
238
+ match process.lock() {
239
+ Ok(_) => tx.send(Ok(())),
240
+ Err(error) => tx.send(Err(error))
241
+ }
242
243
244
Some(
0 commit comments