Skip to content

Commit d25876d

Browse files
maartenssonkolyshkin
authored andcommitted
import1: add missing close method to conn
1 parent d0698a2 commit d25876d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

import1/dbus.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ func New() (*Conn, error) {
6464
return c, nil
6565
}
6666

67+
// Close the underlying dbus connection
68+
func (c *Conn) Close() error {
69+
return c.conn.Close()
70+
}
71+
6772
// Connected returns whether conn is connected
6873
func (c *Conn) Connected() bool {
6974
return c.conn.Connected()

0 commit comments

Comments
 (0)