Unverified Commit c8279e95 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #6174 from ipfs/fix/steb-is-jetlagged

fix error check in swarm connect
parents 81b1cfea b6098bac
......@@ -40,7 +40,7 @@ func (api *SwarmAPI) Connect(ctx context.Context, pi pstore.PeerInfo) error {
swrm.Backoff().Clear(pi.ID)
}
if err := api.peerHost.Connect(ctx, pi); err == nil {
if err := api.peerHost.Connect(ctx, pi); err != nil {
return err
}
......
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