fix(plugins): should return when ctx.Done

This commit is contained in:
fyn
2022-04-09 01:04:29 +08:00
parent 53eb6ed817
commit b6ec83b59b

View File

@@ -313,6 +313,7 @@ func (d *driverPluginClient) handleStats(ctx context.Context, ch chan<- *cstruct
select {
case ch <- stats:
case <-ctx.Done():
return
}
}
}