From 618264c70962d17c9f7e4dc7287ac28ea1a825da Mon Sep 17 00:00:00 2001 From: John Jones Date: Tue, 21 Mar 2017 12:23:54 -0500 Subject: [PATCH] Kademlia does not need a separate thread Kademlia creates its own threads, and does not need a thread to get it started. --- core/daemon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/daemon.c b/core/daemon.c index c8081ac..63a0f69 100644 --- a/core/daemon.c +++ b/core/daemon.c @@ -47,9 +47,12 @@ int ipfs_daemon_start(char* repo_path) { } // create pthread for the API + ipfs_bootstrap_routing(&local_node); + /* if (pthread_create(&work_pths[count_pths++], NULL, ipfs_bootstrap_routing, &local_node)) { fprintf(stderr, "Error creating thread for routing\n"); } + */ fprintf(stderr, "Daemon is ready\n");