Skip to content

Commit 64f2ec2

Browse files
committed
fix panic when opening submodul
this is caused by us dropping the git notify channel and creating a new one when opening the submodule. closes #2895
1 parent 693defd commit 64f2ec2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

asyncgit/src/status.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ impl AsyncStatus {
138138
arc_generation.fetch_add(1, Ordering::Relaxed);
139139
arc_pending.fetch_sub(1, Ordering::Relaxed);
140140

141-
sender
142-
.send(AsyncGitNotification::Status)
143-
.expect("error sending status");
141+
if let Err(e) = sender.send(AsyncGitNotification::Status)
142+
{
143+
log::error!("send status error: {e}");
144+
}
144145
});
145146

146147
Ok(None)

0 commit comments

Comments
 (0)