Fixed loop

This commit is contained in:
jmjatlanta 2017-08-16 07:08:39 -05:00
parent 8a492c1e2f
commit c58bfc9b1e
2 changed files with 3 additions and 0 deletions

View file

@ -419,6 +419,7 @@ struct PeerRequest* ipfs_peer_request_queue_find_peer(struct PeerRequestQueue* q
if (libp2p_peer_compare(entry->current->peer, peer) == 0) {
return entry->current;
}
entry = entry->next;
}
// we didn't find one, so create one