Skip to content

Commit

Permalink
conn: reduce channel capacity to 1 in Conn.send()
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenstridge authored and jsouthworth committed Oct 16, 2020
1 parent a7450e6 commit 9eb6257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn.go
Expand Up @@ -499,7 +499,7 @@ func (conn *Conn) send(ctx context.Context, msg *Message, ch chan *Call) *Call {
panic("nil context")
}
if ch == nil {
ch = make(chan *Call, 5)
ch = make(chan *Call, 1)
} else if cap(ch) == 0 {
panic("dbus: unbuffered channel passed to (*Conn).Send")
}
Expand Down

0 comments on commit 9eb6257

Please sign in to comment.