Skip to content

Commit

Permalink
Merge pull request #135 from KangBK0120/fix-issue-134
Browse files Browse the repository at this point in the history
add else statement in poller.go sync
  • Loading branch information
alok87 authored Jun 15, 2021
2 parents 507157c + 706938d commit da47e88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/queue/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ func (p *Poller) Sync(stopCh <-chan struct{}) {
for key, status := range threadStatus {
if status == false {
delete(p.threads, key)
} else {
p.threads[key] = status
}
p.threads[key] = status
}
case <-stopCh:
klog.V(1).Info("Stopping sync thread of poller gracefully.")
Expand Down

0 comments on commit da47e88

Please sign in to comment.