Browse Source

Do not bail if no Authentication was sent.

pull/45/head
Simon Eisenmann 11 years ago
parent
commit
ab44091f23
  1. 2
      src/app/spreed-webrtc-server/server.go

2
src/app/spreed-webrtc-server/server.go

@ -110,7 +110,7 @@ func (s *Server) OnText(c *Connection, b Buffer) { @@ -110,7 +110,7 @@ func (s *Server) OnText(c *Connection, b Buffer) {
s.Users(c)
}
case "Authentication":
if s.Authenticate(c, msg.Authentication.Authentication) {
if msg.Authentication.Authentication != nil && s.Authenticate(c, msg.Authentication.Authentication) {
s.OnRegister(c)
if c.Hello {
s.Broadcast(c, c.Session.DataSessionStatus())

Loading…
Cancel
Save