mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-03-10 14:34:16 +00:00
exit controller if onlinenotification thread exits while _run == 1
This commit is contained in:
parent
20f02bb772
commit
6e3144370a
@ -1326,6 +1326,9 @@ void PostgreSQL::onlineNotificationThread()
|
|||||||
}
|
}
|
||||||
fprintf(stderr, "%s: Fell out of run loop in onlineNotificationThread", _myAddressStr.c_str());
|
fprintf(stderr, "%s: Fell out of run loop in onlineNotificationThread", _myAddressStr.c_str());
|
||||||
PQfinish(conn);
|
PQfinish(conn);
|
||||||
|
if (_run != 0) {
|
||||||
|
exit(6);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PGconn *PostgreSQL::getPgConn(OverrideMode m) {
|
PGconn *PostgreSQL::getPgConn(OverrideMode m) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user