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:
chenquan
2021-09-30 16:55:36 +08:00
committed by GitHub
parent e43357164c
commit d1bfb5ef61
2 changed files with 16 additions and 1 deletions

View File

@@ -33,7 +33,8 @@ func (manager *ResourceManager) Close() error {
be.Add(err)
}
}
// reset resources
manager.resources = make(map[string]io.Closer)
return be.Err()
}