Merge pull request #240 from danxuliu/fix-signaling-server-messages-total-stat-not-being-incremented

Fix "signaling_server_messages_total" stat not being incremented
This commit is contained in:
Joachim Bauch 2022-05-03 14:08:27 +02:00 committed by GitHub
commit 7e40df3592
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
hub.go
View file

@ -816,6 +816,8 @@ func (h *Hub) processMessage(client *Client, data []byte) {
return
}
statsMessagesTotal.WithLabelValues(message.Type).Inc()
session := client.GetSession()
if session == nil {
if message.Type != "hello" {