1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-10 08:10:52 +00:00

update to /stats

This commit is contained in:
Kane York 2015-11-16 20:35:03 -08:00
parent ab14cdac72
commit c55b5fb277
4 changed files with 18 additions and 16 deletions

View file

@ -170,6 +170,7 @@ func RunSocketConnection(conn *websocket.Conn) {
// websocket.Conn is a ReadWriteCloser
Statistics.ClientConnectsTotal++
Statistics.CurrentClientCount++
var _closer sync.Once
closer := func() {
@ -263,7 +264,6 @@ RunLoop:
case msg := <-clientChan:
if client.VersionString == "" && msg.Command != HelloCommand {
CloseConnection(conn, &CloseFirstMessageNotHello)
Statistics.FirstNotHelloDisconnects++
break RunLoop
}
@ -308,6 +308,7 @@ RunLoop:
close(_serverMessageChan)
Statistics.ClientDisconnectsTotal++
Statistics.CurrentClientCount--
}
func getDeadline() time.Time {