sauerbraten / waiter

A game server for Cube 2: Sauerbraten.
BSD 2-Clause "Simplified" License
10 stars 0 forks source link

endgame stats don't get sent #1

Closed andrewzah closed 4 years ago

andrewzah commented 4 years ago

I think it comes down to this logic check:

if _, ok := s.StatsServer.(*mserver.StatsClient); ok {
    s.ReportEndgameStats()
}

Removing that check and just calling s.ReportEndgameStats() appears to work.

sauerbraten commented 4 years ago

Good find! I fixed this in https://github.com/sauerbraten/maitred/commit/5b5d626a6e8f2a1a5c7ae70a7849faf16ba2c578, then vendored the changes into waiter and adapted to the new API: https://github.com/sauerbraten/waiter/commit/62548380766116a5184cd933ba936cf58c9fd61d