Skip to content

Commit

Permalink
Remove environment mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Menzhinsky authored and jsouthworth committed Oct 23, 2018
1 parent b61b0f9 commit bdbab39
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var (
systemBusLck sync.Mutex
sessionBus *Conn
sessionBusLck sync.Mutex
sessionEnvLck sync.Mutex
)

// ErrClosed is the error returned by calls on a closed connection.
Expand Down Expand Up @@ -82,8 +81,6 @@ func SessionBus() (conn *Conn, err error) {
}

func getSessionBusAddress() (string, error) {
sessionEnvLck.Lock()
defer sessionEnvLck.Unlock()
address := os.Getenv("DBUS_SESSION_BUS_ADDRESS")
if address != "" && address != "autolaunch:" {
return address, nil
Expand Down

0 comments on commit bdbab39

Please sign in to comment.