summaryrefslogtreecommitdiff
path: root/controller
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2018-12-06 13:19:36 -0800
committerGrant Limberg <grant.limberg@zerotier.com>2018-12-06 13:19:36 -0800
commite959908c517b70a932ca5506909717cdee50b89c (patch)
tree5037b62a0b9d30a18e44b35930d9f0a65b2a16cd /controller
parent6e3144370ab19f8110b0e1bcd43d66bab076e0f2 (diff)
downloadinfinitytier-e959908c517b70a932ca5506909717cdee50b89c.tar.gz
infinitytier-e959908c517b70a932ca5506909717cdee50b89c.zip
log message
Diffstat (limited to 'controller')
-rw-r--r--controller/PostgreSQL.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index a745d79c..e9eb6041 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -1324,9 +1324,10 @@ void PostgreSQL::onlineNotificationThread()
std::this_thread::sleep_for(std::chrono::milliseconds(250));
}
- fprintf(stderr, "%s: Fell out of run loop in onlineNotificationThread", _myAddressStr.c_str());
+ fprintf(stderr, "%s: Fell out of run loop in onlineNotificationThread\n", _myAddressStr.c_str());
PQfinish(conn);
- if (_run != 0) {
+ if (_run == 1) {
+ fprintf(stderr, "ERROR: %s onlineNotificationThread should still be running! Exiting Controller.\n", _myAddressStr.c_str());
exit(6);
}
}