-extra assertion
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Apr 2012 11:07:28 +0000 (11:07 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Apr 2012 11:07:28 +0000 (11:07 +0000)
src/util/connection.c

index 9b1191aaf01979e0f5877dac8b5d3ed67adaf643..ba129661b604be48fe213e16448c6540bd2e008e 100644 (file)
@@ -606,6 +606,7 @@ connect_success_continuation (struct GNUNET_CONNECTION_Handle *connection)
     LOG (GNUNET_ERROR_TYPE_DEBUG,
          "Connection succeeded, starting with receiving data (%p)\n", 
         connection);
+    GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == connection->read_task);
     connection->read_task =
       GNUNET_SCHEDULER_add_read_net (GNUNET_TIME_absolute_get_remaining
                                      (connection->receive_timeout), connection->sock,