Return immediately if err getting gateway.
This commit is contained in:
parent
abcba14abe
commit
9583ef4e19
1 changed files with 3 additions and 0 deletions
3
wsapi.go
3
wsapi.go
|
@ -24,6 +24,9 @@ func (s *Session) Open() (err error) {
|
||||||
|
|
||||||
// Get the gateway to use for the Websocket connection
|
// Get the gateway to use for the Websocket connection
|
||||||
g, err := s.Gateway()
|
g, err := s.Gateway()
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: See if there's a use for the http response.
|
// TODO: See if there's a use for the http response.
|
||||||
// conn, response, err := websocket.DefaultDialer.Dial(session.Gateway, nil)
|
// conn, response, err := websocket.DefaultDialer.Dial(session.Gateway, nil)
|
||||||
|
|
Loading…
Reference in a new issue