Skip to content

Commit

Permalink
Fix passing nil context in botrest shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jogramming committed Jul 20, 2018
1 parent cd1b609 commit dada1cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/botrest/server.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package botrest

import (
"context"
"encoding/json"
"github.com/jonas747/discordgo"
"github.com/jonas747/yagpdb/bot"
Expand Down Expand Up @@ -72,7 +73,7 @@ func (p *Plugin) BotInit() {
}

func (p *Plugin) StopBot(wg *sync.WaitGroup) {
p.srv.Shutdown(nil)
p.srv.Shutdown(context.TODO())
wg.Done()
}

Expand Down

0 comments on commit dada1cf

Please sign in to comment.