forked from pothtonswer/discordmuffin
Merge pull request #491 from cookkkie/patch-1
Drop the default gorilla websocket close handler
This commit is contained in:
commit
70fa40c872
1 changed files with 4 additions and 0 deletions
4
wsapi.go
4
wsapi.go
|
@ -86,6 +86,10 @@ func (s *Session) Open() error {
|
|||
return err
|
||||
}
|
||||
|
||||
s.wsConn.SetCloseHandler(func(code int, text string) error {
|
||||
return nil
|
||||
})
|
||||
|
||||
defer func() {
|
||||
// because of this, all code below must set err to the error
|
||||
// when exiting with an error :) Maybe someone has a better
|
||||
|
|
Loading…
Reference in a new issue