1
0
Fork 0
forked from wry/wry

Merge pull request #154 from mahkoh/jorth/explicit-sync-break-loops

surface: explicitly destroy wait handles when breaking loops
This commit is contained in:
mahkoh 2024-04-06 22:08:03 +02:00 committed by GitHub
commit f13c0c2dd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}
}
}