Merge pull request #154 from mahkoh/jorth/explicit-sync-break-loops
surface: explicitly destroy wait handles when breaking loops
This commit is contained in:
commit
f13c0c2dd5
1 changed files with 3 additions and 0 deletions
|
|
@ -116,6 +116,9 @@ pub enum ClearReason {
|
|||
fn break_loops(list: &LinkedList<Entry>) {
|
||||
for entry in list.iter() {
|
||||
entry.link.take();
|
||||
if let EntryKind::Commit(c) = &entry.kind {
|
||||
c.wait_handles.take();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue