diff --git a/conn.go b/conn.go index d68d997e..a4f53940 100644 --- a/conn.go +++ b/conn.go @@ -569,7 +569,7 @@ type transport interface { } var ( - transports map[string]func(string) (transport, error) = make(map[string]func(string) (transport, error)) + transports = make(map[string]func(string) (transport, error)) ) func getTransport(address string) (transport, error) { @@ -586,6 +586,7 @@ func getTransport(address string) (transport, error) { f := transports[v[:i]] if f == nil { err = errors.New("dbus: invalid bus address (invalid or unsupported transport)") + continue } t, err = f(v[i+1:]) if err == nil {