From 8efee2b2f230bc3777579f7ac15c745954466d28 Mon Sep 17 00:00:00 2001 From: dec05eba 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(+) 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