Skip to content

Commit 2ed4623

Browse files
committed
Use disconnect to clean up server tps
1 parent d262d00 commit 2ed4623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/util/ServerTPS.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object ServerTPS {
4343
lastUpdate = currentTime
4444
}
4545

46-
listen<ConnectionEvent.Connect.Post> {
46+
listen<ConnectionEvent.Disconnect> {
4747
updateHistory.clear()
4848
lastUpdate = 0
4949
}

0 commit comments

Comments
 (0)