Browse Source

dont spin as much in the onlineNotificationThread

pull/2/head
Grant Limberg 7 years ago
parent
commit
37d321afc8
  1. 2
      controller/PostgreSQL.cpp

2
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);

Loading…
Cancel
Save