From b6ec83b59bc345779c9f7c830f22fbdae45eeff7 Mon Sep 17 00:00:00 2001 From: fyn Date: Sat, 9 Apr 2022 01:04:29 +0800 Subject: [PATCH] fix(plugins): should return when ctx.Done --- plugins/drivers/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/drivers/client.go b/plugins/drivers/client.go index fd835ee53..592d47b74 100644 --- a/plugins/drivers/client.go +++ b/plugins/drivers/client.go @@ -313,6 +313,7 @@ func (d *driverPluginClient) handleStats(ctx context.Context, ch chan<- *cstruct select { case ch <- stats: case <-ctx.Done(): + return } } }