[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10912 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10912 - gnunet/src/fs |
Date: |
Thu, 15 Apr 2010 10:37:40 +0200 |
Author: grothoff
Date: 2010-04-15 10:37:40 +0200 (Thu, 15 Apr 2010)
New Revision: 10912
Modified:
gnunet/src/fs/gnunet-service-fs.c
Log:
fix
Modified: gnunet/src/fs/gnunet-service-fs.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs.c 2010-04-14 19:22:06 UTC (rev 10911)
+++ gnunet/src/fs/gnunet-service-fs.c 2010-04-15 08:37:40 UTC (rev 10912)
@@ -2582,7 +2582,15 @@
bits = 0;
cps = GNUNET_CONTAINER_multihashmap_get (connected_peers,
&other->hashPubKey);
- GNUNET_assert (NULL != cps);
+ if (NULL == cps)
+ {
+ /* peer must have just disconnected */
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# requests dropped due to
initiator not being connected"),
+ 1,
+ GNUNET_NO);
+ return GNUNET_SYSERR;
+ }
if (0 != (bm & GET_MESSAGE_BIT_RETURN_TO))
cp = GNUNET_CONTAINER_multihashmap_get (connected_peers,
&opt[bits++]);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10912 - gnunet/src/fs,
gnunet <=