diff --git a/connect.go b/connect.go index 0acc4a6..9a0477b 100644 --- a/connect.go +++ b/connect.go @@ -30,7 +30,7 @@ func connect(options xmpp.Options, directTLS bool) (*xmpp.Client, error) { // Connect to server client, err := options.NewClient() if err == nil { - return client, err + return client, nil } } else if adr.Type == "xmpps-client" { // Use direct TLS @@ -40,7 +40,7 @@ func connect(options xmpp.Options, directTLS bool) (*xmpp.Client, error) { // Connect to server client, err := options.NewClient() if err == nil { - return client, err + return client, nil } } }