mirror of
https://github.com/fosrl/olm.git
synced 2026-03-01 16:26:43 +00:00
Dont start the ping until we are connected
This commit is contained in:
@@ -198,6 +198,9 @@ func (o *Olm) handleConnect(msg websocket.WSMessage) {
|
||||
|
||||
o.connected = true
|
||||
|
||||
// Start ping monitor now that we are registered and connected
|
||||
o.websocket.StartPingMonitor()
|
||||
|
||||
// Invoke onConnected callback if configured
|
||||
if o.olmConfig.OnConnected != nil {
|
||||
go o.olmConfig.OnConnected()
|
||||
|
||||
Reference in New Issue
Block a user