Skip to content

Commit

Permalink
Fix panic when stopping
Browse files Browse the repository at this point in the history
panic: close of closed channel
  • Loading branch information
Kesuaheli committed Oct 1, 2023
1 parent 8d6bb72 commit 5bf00d8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func main() {
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP)
defer stop()
webChan := make(chan struct{})
defer close(webChan)

log.Printf(banner, viper.GetString("version"), viper.GetString("discord.credits"))

Expand Down

0 comments on commit 5bf00d8

Please sign in to comment.