Skip to content

Commit

Permalink
feat: change 1 to 5 seconds when stopping plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Yu <jack.yu@suse.com>
  • Loading branch information
Yu-Jack committed Jul 12, 2024
1 parent 27d9ea5 commit 58c511f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/deviceplugins/usb_device_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (plugin *USBDevicePlugin) DeviceName() string {

func (plugin *USBDevicePlugin) stopDevicePlugin() error {
// Give the device plugin one second to properly deregister
ticker := time.NewTicker(1 * time.Second)
ticker := time.NewTicker(5 * time.Second)
defer ticker.Stop()
select {
case <-plugin.deregistered:
Expand Down

0 comments on commit 58c511f

Please sign in to comment.