mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-28 17:42:17 +00:00
[MySQL] Add keepalives to UCS and Loginserver (#2953)
This commit is contained in:
1 parent
d6c6b78d8a
commit
ce1472db1e
2 files changed
+12
-1
No files matched your search
+5
-1
@@ -114,7 +114,7 @@ int main() {
|
||||
Timer ChannelListProcessTimer(60000);
|
||||
Timer ClientConnectionPruneTimer(60000);
|
||||
|
||||
Timer InterserverTimer(INTERSERVER_TIMER); // does auto-reconnect
|
||||
Timer keepalive(INTERSERVER_TIMER); // does auto-reconnect
|
||||
|
||||
LogInfo("Starting EQEmu Universal Chat Server");
|
||||
|
||||
@@ -188,6 +188,10 @@ int main() {
|
||||
// crash_test.detach();
|
||||
|
||||
auto loop_fn = [&](EQ::Timer* t) {
|
||||
if (keepalive.Check()) {
|
||||
keepalive.Start();
|
||||
database.ping();
|
||||
}
|
||||
|
||||
Timer::SetCurrentTime();
|
||||
|
||||
|
||||
Reference in new issue
Block a user