mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-09 11:52:35 +03:00
Don't cancel Scan on context cancellation
This commit is contained in:
parent
7ccf685973
commit
70effa09e8
@ -140,6 +140,7 @@ func (s *scanner) startProgressTracker(mediaFolder string) (chan uint32, context
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *scanner) RescanAll(ctx context.Context, fullRescan bool) error {
|
func (s *scanner) RescanAll(ctx context.Context, fullRescan bool) error {
|
||||||
|
ctx = context.WithoutCancel(ctx)
|
||||||
if !isScanning.TryLock() {
|
if !isScanning.TryLock() {
|
||||||
log.Debug("Scanner already running, ignoring request for rescan.")
|
log.Debug("Scanner already running, ignoring request for rescan.")
|
||||||
return ErrAlreadyScanning
|
return ErrAlreadyScanning
|
||||||
|
Loading…
x
Reference in New Issue
Block a user