suppress warning
authorChristian Grothoff <christian@grothoff.org>
Tue, 9 Nov 2010 20:42:34 +0000 (20:42 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 9 Nov 2010 20:42:34 +0000 (20:42 +0000)
src/util/connection.c

index 3f9690c0c16d70eca853cb85104d38b14837deed..6067380619869f0547adae1ff47c783ee1f81ffc 100644 (file)
@@ -498,7 +498,8 @@ 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 != ENOTCON) )
           GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "shutdown");
       }
     }