mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-03 14:23:10 +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
|
||||
if err := c.conn.WriteMessage(websocket.PingMessage, []byte(msg)); err != nil {
|
||||
log.Printf("Could not send ping to proxy at %s: %v", c, err)
|
||||
c.scheduleReconnect()
|
||||
go c.scheduleReconnect()
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue