mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-02-15 03:11:50 +00:00
gofmt -s -w yggdrasil.go
This commit is contained in:
parent
0176d25235
commit
aef62afb1b
1 changed files with 2 additions and 2 deletions
|
@ -310,8 +310,8 @@ func main() {
|
||||||
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
|
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
|
||||||
// Create a function to capture the service being stopped on Windows
|
// Create a function to capture the service being stopped on Windows
|
||||||
winTerminate := func() {
|
winTerminate := func() {
|
||||||
c <- os.Interrupt
|
c <- os.Interrupt
|
||||||
}
|
}
|
||||||
minwinsvc.SetOnExit(winTerminate)
|
minwinsvc.SetOnExit(winTerminate)
|
||||||
// Wait for the terminate/interrupt signal
|
// Wait for the terminate/interrupt signal
|
||||||
<-c
|
<-c
|
||||||
|
|
Loading…
Reference in a new issue