gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21687 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r21687 - gnunet/src/util
Date: Fri, 1 Jun 2012 11:57:05 +0200

Author: grothoff
Date: 2012-06-01 11:57:05 +0200 (Fri, 01 Jun 2012)
New Revision: 21687

Modified:
   gnunet/src/util/server.c
Log:
-code to debug #2390

Modified: gnunet/src/util/server.c
===================================================================
--- gnunet/src/util/server.c    2012-06-01 09:40:42 UTC (rev 21686)
+++ gnunet/src/util/server.c    2012-06-01 09:57:05 UTC (rev 21687)
@@ -817,6 +817,7 @@
 {
   struct GNUNET_SERVER_Client *client = cls;
 
+  GNUNET_break (0 != client->warn_type); /* type should never be 0 here, as we 
don't use 0 */
   client->warn_task =
       GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES,
                                     &warn_no_receive_done, client);
@@ -903,6 +904,7 @@
         {
           if (0 == sender->suspended)
           {
+           GNUNET_break (0 != type); /* type should never be 0 here, as we 
don't use 0 */
             sender->warn_start = GNUNET_TIME_absolute_get ();
             sender->warn_task =
                 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES,
@@ -1396,6 +1398,7 @@
     GNUNET_SERVER_notify_transmit_ready_cancel (&client->th);
   (void) GNUNET_SCHEDULER_add_now (&destroy_connection,
                                   client->connection);
+  GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == client->warn_task);
   GNUNET_free (client);
   /* we might be in soft-shutdown, test if we're done */
   if (NULL != server)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]