Fix issues found by staticcheck

This commit is contained in:
Sascha L. Teichmann
2024-01-06 10:34:37 +01:00
parent 65762936a4
commit 5442fab97d
6 changed files with 14 additions and 18 deletions

View File

@ -13,6 +13,7 @@ import (
"os/signal"
"runtime"
"strings"
"syscall"
"time"
"bitbucket.org/s_l_teichmann/mtsatellite/common"
@ -135,7 +136,7 @@ func main() {
connChan := make(chan net.Conn)
defer close(connChan)
sigChan := make(chan os.Signal, 1)
signal.Notify(sigChan, os.Interrupt, os.Kill)
signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)
go func() {
for {