mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-05 13:37:38 +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
|
package cmd
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ func startSignaler(ctx context.Context) func() error {
|
||||||
var sigChan = make(chan os.Signal, 1)
|
var sigChan = make(chan os.Signal, 1)
|
||||||
signal.Notify(sigChan, os.Interrupt)
|
signal.Notify(sigChan, os.Interrupt)
|
||||||
select {
|
select {
|
||||||
case <-sigChan:
|
case sig := <-sigChan:
|
||||||
log.Info(ctx, "Received termination signal", "signal", sig)
|
log.Info(ctx, "Received termination signal", "signal", sig)
|
||||||
return interrupted
|
return interrupted
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue