diff options
author | Grant Limberg <grant.limberg@zerotier.com> | 2019-05-31 15:10:45 -0700 |
---|---|---|
committer | Grant Limberg <grant.limberg@zerotier.com> | 2019-05-31 15:10:45 -0700 |
commit | 37d321afc80aaced7e0473e33893787d9a42ef78 (patch) | |
tree | b89061141fe5f11d13adeb13adf9c278a881eb65 | |
parent | 90d324ae964fddf3355505d5d9651e75872f76b7 (diff) | |
download | infinitytier-37d321afc80aaced7e0473e33893787d9a42ef78.tar.gz infinitytier-37d321afc80aaced7e0473e33893787d9a42ef78.zip |
dont spin as much in the onlineNotificationThread
-rw-r--r-- | controller/PostgreSQL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 9aa4fbaa..de6b4f46 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1512,7 +1512,7 @@ void PostgreSQL::onlineNotificationThread() // PQclear(res); // } - std::this_thread::sleep_for(std::chrono::milliseconds(0)); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); } fprintf(stderr, "%s: Fell out of run loop in onlineNotificationThread\n", _myAddressStr.c_str()); PQfinish(conn); |