mirror of https://github.com/stashapp/stash.git
Suppress new context closed errors (#2947)
This commit is contained in:
parent
d4e706daef
commit
00820a8789
|
@ -128,7 +128,9 @@ func (rs imageRoutes) ImageCtx(next http.Handler) http.Handler {
|
|||
|
||||
if image != nil {
|
||||
if err := image.LoadPrimaryFile(ctx, rs.fileFinder); err != nil {
|
||||
if !errors.Is(err, context.Canceled) {
|
||||
logger.Errorf("error loading primary file for image %d: %v", imageID, err)
|
||||
}
|
||||
// set image to nil so that it doesn't try to use the primary file
|
||||
image = nil
|
||||
}
|
||||
|
|
|
@ -545,7 +545,9 @@ func (rs sceneRoutes) SceneCtx(next http.Handler) http.Handler {
|
|||
|
||||
if scene != nil {
|
||||
if err := scene.LoadPrimaryFile(ctx, rs.fileFinder); err != nil {
|
||||
if !errors.Is(err, context.Canceled) {
|
||||
logger.Errorf("error loading primary file for scene %d: %v", sceneID, err)
|
||||
}
|
||||
// set scene to nil so that it doesn't try to use the primary file
|
||||
scene = nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue