Fix the resources variable not reset after the resource manager is closed (#1105)
* Fix the resource variable not reset after the resource manager is closed * Format code
This commit is contained in:
@@ -33,7 +33,8 @@ func (manager *ResourceManager) Close() error {
|
||||
be.Add(err)
|
||||
}
|
||||
}
|
||||
|
||||
// reset resources
|
||||
manager.resources = make(map[string]io.Closer)
|
||||
return be.Err()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user