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

View file

@ -106,6 +106,8 @@ int main(int argc, char** argv) {
libp2p_logger_add_class("peer_request_queue");
libp2p_logger_add_class("bitswap_engine");
libp2p_logger_add_class("peerstore");
libp2p_logger_add_class("dht_protocol");
libp2p_logger_add_class("peer");
strip_quotes(argc, argv);
int retVal = parse_arguments(argc, argv);