mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
Fix build for non-unix
This commit is contained in:
parent
9ffd145e82
commit
4549b91ae0
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
//go:build !unix
|
||||
//go:build windows || plan9
|
||||
|
||||
package cmd
|
||||
|
||||
|
@ -17,7 +17,7 @@ func startSignaler(ctx context.Context) func() error {
|
|||
var sigChan = make(chan os.Signal, 1)
|
||||
signal.Notify(sigChan, os.Interrupt)
|
||||
select {
|
||||
case <-sigChan:
|
||||
case sig := <-sigChan:
|
||||
log.Info(ctx, "Received termination signal", "signal", sig)
|
||||
return interrupted
|
||||
case <-ctx.Done():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue