Files
oak-gpui/crates
Antonio Scandurra 372e31d54f Don't panic if worktree was dropped before sending path changes
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.
2023-04-10 08:16:08 +02:00
..
2023-04-06 15:54:44 -06:00
2023-04-07 11:45:53 -06:00
2023-04-06 15:54:44 -06:00
2023-04-07 11:45:53 -06:00
2023-02-27 12:06:10 -08:00
2023-04-07 11:45:53 -06:00
2023-03-07 12:19:51 -08:00
2023-04-07 11:45:53 -06:00
2023-04-06 15:54:44 -06:00
2023-04-07 11:45:53 -06:00
2023-04-06 15:54:44 -06:00
2023-04-07 11:45:53 -06:00
2023-04-06 15:54:44 -06:00