diff --git a/utils/file/updater.go b/utils/file/updater.go index 2334208b..9af15c64 100644 --- a/utils/file/updater.go +++ b/utils/file/updater.go @@ -43,9 +43,9 @@ func GetLazyData(path string, isReturnDataBytes, isDataMustEqual bool) ([]byte, } else { filemd5 = (*[16]byte)(*(*unsafe.Pointer)(unsafe.Pointer(&ms))) logrus.Infoln("[file]从验证服务器获得文件md5:", hex.EncodeToString(filemd5[:])) - _ = registry.Close() } } + _ = registry.Close() lzmu.Unlock() if IsExist(path) {