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.PruneClients()
s.PruneCompanies()
s.UpdateConfigClients()
s.ComputeClientTime()
if !s.Status.Paused && s.NeedPause() {
s.Pause()