diff --git a/blank.go b/blank.go index 49dbb27..b1a1938 100644 --- a/blank.go +++ b/blank.go @@ -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