From a601e86f188aaeacef0e5bd44e7b880b8861592d Mon Sep 17 00:00:00 2001 From: Yusef Napora Date: Mon, 11 May 2020 11:19:31 -0400 Subject: [PATCH] subscribe connmgr to net notifications --- blank.go | 3 +++ 1 file changed, 3 insertions(+) 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