Stops the ping timer if set. Connection lock is held on entry.
()
| 3137 | // Stops the ping timer if set. |
| 3138 | // Connection lock is held on entry. |
| 3139 | func (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. |
no test coverage detected