Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
When querying the stats of a container that is in the process of being stopped, an ERROR_INVALID_HANDLE (0x6) may be returned. This change ignores that error and returns an empty stats object. This change also fixes the return values of Stats() when encountering one of the expected errors. Returning nil stats when error is nil will break caller assumptions of finding a valid value when error is nil. Instead, an ErrNotFound is returned. Signed-off-by: Gabriel Adrian Samfira <[email protected]> (cherry picked from commit 790bcae) Signed-off-by: Daniel Canter <[email protected]>
- Loading branch information