mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-22 23:35:13 +03:00
coap_io.c: remove coap_socket_close() added in error to this fix
Reverting out this part of the change. This should be managed and done at the application layer.
This commit is contained in:
1 parent
47b46d6907
commit
eb84476fd1
1 file changed
-1
@@ -852,7 +852,6 @@ coap_network_read(coap_socket_t *sock, coap_packet_t *packet) {
|
||||
#endif
|
||||
/* client-side ICMP destination unreachable, ignore it */
|
||||
coap_log(LOG_WARNING, "coap_network_read: unreachable\n");
|
||||
coap_socket_close(sock);
|
||||
return -2;
|
||||
}
|
||||
coap_log(LOG_WARNING, "coap_network_read: %s\n", coap_socket_strerror());
|
||||
|
||||
Reference in new issue
Block a user