godbus/dbus — pull request #10 by vcaputo (2014-10-02 00:53:19+00:00)
Title: Prevent double-close panic in conn.Close

inWorker calls Conn.Close() following a read error. The read error may
be caused by an external caller calling Conn.Close() in an active close
of the established connection. Only one of the callers shall be
permitted to perform the actual closing.

We're already maintaining a synchronized closed state in Conn.closed,
simply short-circuit Conn.Close() when Conn.closed == true.