aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-16 11:24:31 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit8efee2b2f230bc3777579f7ac15c745954466d28 (patch)
tree82859f64bd1a85d5cf8c1e39f09edf4993ca43da
parent627bd655347cb3aaf04b352e4f0a0207d64c8cb1 (diff)
Add delay to sending old nodes to prevent spamming (and getting disconnected)
-rw-r--r--src/Database.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Database.cpp b/src/Database.cpp
index b4d0e12..77c5e14 100644
--- a/src/Database.cpp
+++ b/src/Database.cpp
@@ -319,6 +319,7 @@ namespace odhtdb
if(!ok)
Log::error("Failed to put response for old data for 'add' data");
});
+ this_thread::sleep_for(chrono::milliseconds(50));
}, fetchOrder);
}
catch (std::exception &e)