Commit db7d0481 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4679e521
...@@ -210,7 +210,7 @@ func (m *Msg) nak(why string) { ...@@ -210,7 +210,7 @@ func (m *Msg) nak(why string) {
func NewChan(name string) Chan { func NewChan(name string) Chan {
// XXX somehow avoid channels with duplicate names // XXX somehow avoid channels with duplicate names
// (only allow to create named channels from under dispatcher?) // (only allow to create named channels from under dispatcher?)
return &_chan{msgq: make(chan *Msg), _name: name} return &_chan{msgq: make(chan *Msg), down: make(chan struct{}), _name: name}
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment