mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
372e31d54f
In `refresh_entry`, we send a message to the `self.path_changes_tx` channel to notify the background thread that a path has changed. However, given that `refresh_entry` uses `spawn_weak`, the worktree could get dropped before sending the message, which could cause a panic. This commit changes the code to return an error instead of panicking. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |