missing heartbeat code

This commit is contained in:
shoopea 2021-11-22 17:08:10 +08:00
parent 62974dc19c
commit 3ddb733a15
2 changed files with 5 additions and 4 deletions

1
ttd.go
View File

@ -140,6 +140,7 @@ func (s *ServerTTD) HeartBeat(stop chan struct{}) {
s.UpdateCompanies() s.UpdateCompanies()
s.PruneClients() s.PruneClients()
s.PruneCompanies() s.PruneCompanies()
s.UpdateConfigClients()
s.ComputeClientTime() s.ComputeClientTime()
if !s.Status.Paused && s.NeedPause() { if !s.Status.Paused && s.NeedPause() {
s.Pause() s.Pause()

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "440e45f" var githash = "62974dc"
var buildstamp = "2021-11-22_08:59:46" var buildstamp = "2021-11-22_09:07:53"
var commits = "202" var commits = "203"
var version = "440e45f-b202 - 2021-11-22_08:59:46" var version = "62974dc-b203 - 2021-11-22_09:07:53"