Skip to content

Commit

Permalink
agent: delete element of sandbox.deviceWatchers with right key
Browse files Browse the repository at this point in the history
Fixes kata-containers#609

Signed-off-by: leizhongkai <leizhongkai@huawei.com>
  • Loading branch information
zklei committed Jul 19, 2019
1 parent 581bcf2 commit 7c97a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ func (s *sandbox) listenToUdevEvents() {
if ch != nil && strings.HasPrefix(uEv.DevPath, filepath.Join(rootBusPath, devPCIAddress)) {
ch <- uEv.DevName
close(ch)
delete(s.deviceWatchers, uEv.DevName)
delete(s.deviceWatchers, devPCIAddress)
}
}

Expand Down

0 comments on commit 7c97a0a

Please sign in to comment.