Skip to content

Commit

Permalink
test: notify on shut down
Browse files Browse the repository at this point in the history
  • Loading branch information
inciner8r committed Jun 17, 2023
1 parent 984b3f7 commit e8547a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Init() {
sc := make(chan os.Signal, 1)
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill)
<-sc

fmt.Println("shutting down")
// Cleanly close down the Discord session.
sess.Close()
}

0 comments on commit e8547a9

Please sign in to comment.