Skip to content

Commit

Permalink
Merge pull request #778 from l1b0k/release-1.8
Browse files Browse the repository at this point in the history
fix: potential deadlock
  • Loading branch information
BSWANG authored Jan 24, 2025
2 parents 5c26186 + 16efb6d commit f3d812c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/eni/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ func (m *Manager) Allocate(ctx context.Context, cni *daemon.CNI, req *AllocReque
cancel()
break
}
resultCh <- resp.NetworkConfigs

select {
case <-ctx.Done():
case resultCh <- resp.NetworkConfigs:
}
}
}()
}
Expand Down

0 comments on commit f3d812c

Please sign in to comment.