Skip to content

Commit

Permalink
Fix panic during network error in vsphere input (influxdata#4765)
Browse files Browse the repository at this point in the history
  • Loading branch information
prydin authored and otherpirate committed Mar 15, 2019
1 parent c9df294 commit 5c8c32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/vsphere/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ func (e *Endpoint) collectResource(ctx context.Context, resourceType string, acc
err := make(multiError, 0)
wp.Drain(ctx, func(ctx context.Context, in interface{}) bool {
if in != nil {
mux.Unlock()
mux.Lock()
defer mux.Unlock()
err = append(err, in.(error))
return false
Expand Down

0 comments on commit 5c8c32b

Please sign in to comment.