mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-08 00:42:25 +02:00
Start message processing earlier.
This commit is contained in:
parent
20228b176f
commit
e9f80c6b4d
|
@ -248,6 +248,8 @@ func (c *Client) ReadPump() {
|
||||||
c.Close()
|
c.Close()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
go c.processMessages()
|
||||||
|
|
||||||
addr := c.RemoteAddr()
|
addr := c.RemoteAddr()
|
||||||
c.mu.Lock()
|
c.mu.Lock()
|
||||||
conn := c.conn
|
conn := c.conn
|
||||||
|
@ -279,8 +281,6 @@ func (c *Client) ReadPump() {
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
go c.processMessages()
|
|
||||||
|
|
||||||
for {
|
for {
|
||||||
conn.SetReadDeadline(time.Now().Add(pongWait)) // nolint
|
conn.SetReadDeadline(time.Now().Add(pongWait)) // nolint
|
||||||
messageType, reader, err := conn.NextReader()
|
messageType, reader, err := conn.NextReader()
|
||||||
|
|
Loading…
Reference in a new issue