summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/dht.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-10-11 14:10:03 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-10-11 14:10:03 +0200
commit6856f3e24fa00b99747bab790b478866212b2e2d (patch)
treeca2a4f818bb1844408f015aa2ebe32cdb8a9e3a1 /src/ipcpd/normal/dht.c
parent91299fe1de31465b0b389ba6fee76db23db830fb (diff)
parent9b8d2830250ecffb298f6c72196cffb94991f4d1 (diff)
downloadouroboros-6856f3e24fa00b99747bab790b478866212b2e2d.tar.gz
ouroboros-6856f3e24fa00b99747bab790b478866212b2e2d.zip
Merge branch 'testing' into be
Diffstat (limited to 'src/ipcpd/normal/dht.c')
-rw-r--r--src/ipcpd/normal/dht.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c
index 4064bf5c..aa1909e9 100644
--- a/src/ipcpd/normal/dht.c
+++ b/src/ipcpd/normal/dht.c
@@ -2729,6 +2729,10 @@ static void handle_event(void * self,
pthread_t thr;
struct join_info * inf;
struct conn * c = (struct conn *) o;
+ struct timespec slack = {0, 10 * MILLION};
+
+ /* Give the pff some time to update for the new link. */
+ nanosleep(&slack, NULL);
switch(dht_get_state(dht)) {
case DHT_INIT: