| 294 | } |
| 295 | |
| 296 | void reset_reconnect(pn_connection_t* pnc) { |
| 297 | reconnect_context* rc = get_reconnect_context(pnc); |
| 298 | |
| 299 | if (!rc) return; |
| 300 | |
| 301 | rc->delay_ = 0; |
| 302 | rc->retries_ = 0; |
| 303 | // set retry to the initial url next |
| 304 | rc->current_url_ = -1; |
| 305 | } |
| 306 | |
| 307 | } |
| 308 |
no test coverage detected