Return immediately if err getting gateway.

This commit is contained in:
Bruce Marriner 2016-01-10 14:46:44 -06:00
parent abcba14abe
commit 9583ef4e19

View file

@ -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)