MCPcopy
hub / github.com/nats-io/nats.go / stopPingTimer

Method stopPingTimer

nats.go:3139–3143  ·  view source on GitHub ↗

Stops the ping timer if set. Connection lock is held on entry.

()

Source from the content-addressed store, hash-verified

3137// Stops the ping timer if set.
3138// Connection lock is held on entry.
3139func (nc *Conn) stopPingTimer() {
3140 if nc.ptmr != nil {
3141 nc.ptmr.Stop()
3142 }
3143}
3144
3145// Try to reconnect using the option parameters.
3146// This function assumes we are allowed to reconnect.

Callers 4

ForceReconnectMethod · 0.95
doReconnectMethod · 0.95
processOpErrMethod · 0.95
closeMethod · 0.95

Calls 1

StopMethod · 0.65

Tested by

no test coverage detected