From 306579df31826dcb934dea6eabb88a856a707f76 Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Wed, 16 May 2018 11:24:31 +0200 Subject: Add delay to sending old nodes to prevent spamming (and getting disconnected) --- src/Database.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) -- cgit v1.2.3