resolve forget unlock resource lack lock
@@ -88,6 +88,7 @@ func (service *cdnService) triggerCdnSyncAction(ctx context.Context, taskID stri
if ok, err := service.cdnManager.TryFreeSpace(seedTask.SourceFileLength); err != nil {
seedTask.Log().Errorf("failed to try free space: %v", err)
} else if !ok {
+ synclock.UnLock(taskID, true)
return errResourcesLacked
}
}
