modules/hyprspace: force reconnection

This commit is contained in:
Max Headroom 2022-09-26 22:54:40 +02:00
parent 76f3badc7c
commit d9d599a598

View file

@ -167,6 +167,7 @@ func bootstrap(ctx context.Context, node host.Host, bootstrapPeers map[peer.ID]*
for _, peerInfo := range bootstrapPeers {
go func(peerInfo *peer.AddrInfo) {
defer wg.Done()
node.Network().ClosePeer(peerInfo.ID)
err := node.Connect(ctx, *peerInfo)
if err == nil {
lock.Lock()