Closed stream in store.go Active()
Signed-off-by: chchliang <chen.chuanliang@zte.com.cn>
This commit is contained in:
parent
a85c28d248
commit
4465e493fc
1 changed files with 2 additions and 0 deletions
|
@ -311,6 +311,8 @@ func (s *Store) Active() ([]Status, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer fp.Close()
|
||||||
|
|
||||||
fis, err := fp.Readdir(-1)
|
fis, err := fp.Readdir(-1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in a new issue