mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Remove unused code
This commit is contained in:
parent
885cd345ab
commit
747069b229
1 changed files with 1 additions and 4 deletions
|
@ -2,7 +2,6 @@ package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
@ -25,8 +24,6 @@ import (
|
||||||
"golang.org/x/sync/errgroup"
|
"golang.org/x/sync/errgroup"
|
||||||
)
|
)
|
||||||
|
|
||||||
var interrupted = errors.New("service was interrupted")
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
cfgFile string
|
cfgFile string
|
||||||
noBanner bool
|
noBanner bool
|
||||||
|
@ -85,7 +82,7 @@ func runNavidrome() {
|
||||||
g.Go(startPlaybackServer(ctx))
|
g.Go(startPlaybackServer(ctx))
|
||||||
g.Go(schedulePeriodicScan(ctx))
|
g.Go(schedulePeriodicScan(ctx))
|
||||||
|
|
||||||
if err := g.Wait(); err != nil && !errors.Is(err, interrupted) {
|
if err := g.Wait(); err != nil {
|
||||||
log.Error("Fatal error in Navidrome. Aborting", err)
|
log.Error("Fatal error in Navidrome. Aborting", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue