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:
Jon Shallow committed 2018-02-15 09:51:05 +00:00
1 parent 47b46d6907
commit eb84476fd1
1 file changed
-1
-1
View File
@@ -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());