mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
Fix deadlock
This commit is contained in:
parent
30a6948009
commit
7a2b5a29aa
1 changed files with 2 additions and 2 deletions
|
@ -85,9 +85,9 @@ func (f *Feeder) SupplyEntropyAsIntIfNeeded(n int64, entropy int) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// CloseFeeder stops the feed processing - the responsible goroutine exits.
|
// CloseFeeder stops the feed processing - the responsible goroutine exits. The input channel is closed and the feeder may not be used anymore in any way.
|
||||||
func (f *Feeder) CloseFeeder() {
|
func (f *Feeder) CloseFeeder() {
|
||||||
f.input <- nil
|
close(f.input)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Feeder) run(ctx context.Context) error {
|
func (f *Feeder) run(ctx context.Context) error {
|
||||||
|
|
Loading…
Add table
Reference in a new issue