aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-16 11:24:31 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-16 11:24:35 +0200
commit306579df31826dcb934dea6eabb88a856a707f76 (patch)
tree4255dc352387df6d5fd92be42ec9ac5c7b17926e /src
parent05920c5c5ffcedc435eeee29f6357c6b4fdc9c4f (diff)
Add delay to sending old nodes to prevent spamming (and getting disconnected)
Diffstat (limited to 'src')
-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)