1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-24 15:00:56 +00:00

Oops, forgot to count disconnects...

This commit is contained in:
Kane York 2016-01-15 21:22:36 -08:00
parent ba73186a99
commit 133544bddd

View file

@ -351,11 +351,12 @@ func RunSocketConnection(conn *websocket.Conn) {
if !StopAcceptingConnections {
// Don't perform high contention operations when server is closing
atomic.AddUint64(&Statistics.CurrentClientCount, NegativeOne)
}
atomic.AddUint64(&Statistics.ClientDisconnectsTotal, 1)
report.UsernameWasValidated = client.UsernameValidated
report.TwitchUsername = client.TwitchUsername
logstasher.Submit(&report)
report.UsernameWasValidated = client.UsernameValidated
report.TwitchUsername = client.TwitchUsername
logstasher.Submit(&report)
}
}
func runSocketReader(conn *websocket.Conn, errorChan chan<- error, clientChan chan<- ClientMessage, stoppedChan <-chan struct{}) {