mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-08 17:02:18 +02:00
Schedule reconnect asynchronously if ping could not be sent.
This commit is contained in:
parent
4dfffca285
commit
cdbc177179
|
@ -488,7 +488,7 @@ func (c *mcuProxyConnection) sendPing() bool {
|
||||||
c.conn.SetWriteDeadline(now.Add(writeWait)) // nolint
|
c.conn.SetWriteDeadline(now.Add(writeWait)) // nolint
|
||||||
if err := c.conn.WriteMessage(websocket.PingMessage, []byte(msg)); err != nil {
|
if err := c.conn.WriteMessage(websocket.PingMessage, []byte(msg)); err != nil {
|
||||||
log.Printf("Could not send ping to proxy at %s: %v", c, err)
|
log.Printf("Could not send ping to proxy at %s: %v", c, err)
|
||||||
c.scheduleReconnect()
|
go c.scheduleReconnect()
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue