Unverified Commit 692dae50 authored by vyzo's avatar vyzo Committed by GitHub

Merge pull request #45 from libp2p/fix/connmgr-notifee

subscribe connmgr to net notifications
parents a35db1d1 a601e86f
......@@ -63,6 +63,9 @@ func NewBlankHost(n network.Network, options ...Option) *BlankHost {
eventbus: eventbus.NewBus(),
}
// subscribe the connection manager to network notifications (has no effect with NullConnMgr)
n.Notify(bh.cmgr.Notifee())
var err error
if bh.emitters.evtLocalProtocolsUpdated, err = bh.eventbus.Emitter(&event.EvtLocalProtocolsUpdated{}); err != nil {
return nil
......
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