Tell core that we want to have this packet delivered
[oweals/gnunet.git] / src / util / connection.c
index 3f9690c0c16d70eca853cb85104d38b14837deed..aa5db91bf41e1a14976a4c1ce21f4584635ce5a5 100644 (file)
@@ -498,7 +498,9 @@ destroy_continuation (void *cls,
 #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");
       }
     }