diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 37d34dda9..a8a741cf9 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1711,11 +1711,7 @@ void PostgreSQL::onlineNotification_Redis() fprintf(stderr, "onlineNotification ran in %llu ms\n", total); - if (count > 0) { - std::this_thread::yield(); - } else { - std::this_thread::sleep_for(std::chrono::seconds(1)); - } + std::this_thread::sleep_for(std::chrono::seconds(1)); } }