mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
fix crash interfering of other git processes (closes #271)
This commit is contained in:
parent
a991810f01
commit
4b56a636ff
2 changed files with 10 additions and 5 deletions
|
|
@ -19,6 +19,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||

|
||||
|
||||
### Fixed
|
||||
- crash when changing git repo while gitui is open ([#271](https://github.com/extrawurst/gitui/issues/271))
|
||||
|
||||
## [0.10.1] - 2020-09-01
|
||||
|
||||
### Fixed
|
||||
|
|
|
|||
|
|
@ -120,20 +120,22 @@ impl AsyncStatus {
|
|||
self.pending.fetch_add(1, Ordering::Relaxed);
|
||||
|
||||
rayon_core::spawn(move || {
|
||||
Self::fetch_helper(
|
||||
let ok = Self::fetch_helper(
|
||||
status_type,
|
||||
include_untracked,
|
||||
hash_request,
|
||||
arc_current,
|
||||
arc_last,
|
||||
)
|
||||
.expect("failed to fetch status");
|
||||
.is_ok();
|
||||
|
||||
arc_pending.fetch_sub(1, Ordering::Relaxed);
|
||||
|
||||
sender
|
||||
.send(AsyncNotification::Status)
|
||||
.expect("error sending status");
|
||||
if ok {
|
||||
sender
|
||||
.send(AsyncNotification::Status)
|
||||
.expect("error sending status");
|
||||
}
|
||||
});
|
||||
|
||||
Ok(None)
|
||||
|
|
|
|||
Loading…
Reference in a new issue