Skip to content
Commit b8614607 authored by Robert Lubos's avatar Robert Lubos Committed by Benjamin Cabé
Browse files

samples: net: sockets: coap_download: Cancel requests before closing



Call coap_client_cancel_requests() before closing the client socket so
that all activities on that socket are ceased before close. This
prevents POLLNVAL error from being thrown by the coap_client thread and
error being printed in the sample output.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 7ccf8706
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment