fix: silently abort early if we have no connections to make

This commit is contained in:
Derrick Hammer 2024-01-31 20:20:59 -05:00
parent 5079db4f03
commit dfeb8b29a8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,10 @@ func (h HandshakeDone) HandleMessage(message IncomingMessageDataSigned) error {
return err return err
} }
if len(h.connectionUris) == 0 {
return nil
}
peer.SetConnectionURIs(h.connectionUris) peer.SetConnectionURIs(h.connectionUris)
peerId, err := peer.Id().ToString() peerId, err := peer.Id().ToString()