From 58c511f3d626907bf6af88472a179a417b274476 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Fri, 12 Jul 2024 10:04:11 +0800 Subject: [PATCH] feat: change 1 to 5 seconds when stopping plugin Signed-off-by: Jack Yu --- pkg/deviceplugins/usb_device_plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/deviceplugins/usb_device_plugin.go b/pkg/deviceplugins/usb_device_plugin.go index 7a162cf..ba0d7a2 100644 --- a/pkg/deviceplugins/usb_device_plugin.go +++ b/pkg/deviceplugins/usb_device_plugin.go @@ -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: