#endif
if (sock->persist != GNUNET_YES)
{
- if (GNUNET_YES != GNUNET_NETWORK_socket_shutdown (sock->sock, SHUT_RDWR))
+ if ( (GNUNET_YES != GNUNET_NETWORK_socket_shutdown (sock->sock, SHUT_RDWR)) &&
+ (errno != ENOTCONN) &&
+ (errno != ECONNRESET) )
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "shutdown");
}
}