Commit 672a1e88 authored by Yuval Snir's avatar Yuval Snir Committed by Kishen Maloor

Remove ping timeout cb on TCP/TLS disconnect

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent 4014ef15
Pipeline #261 passed with stage
in 48 seconds
......@@ -1159,6 +1159,13 @@ notify_client_cb_503(oc_client_cb_t *cb)
oc_response_handler_t handler = (oc_response_handler_t)cb->handler.response;
handler(&client_response);
#ifdef OC_TCP
if ((oc_string_len(cb->uri) == 5 &&
memcmp((const char *)oc_string(cb->uri), "/ping", 5) == 0)) {
oc_ri_remove_timed_event_callback(cb, oc_remove_ping_handler);
}
#endif /* OC_TCP */
free_client_cb(cb);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment