[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23652 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23652 - gnunet/src/transport |
Date: |
Wed, 5 Sep 2012 11:10:42 +0200 |
Author: wachs
Date: 2012-09-05 11:10:42 +0200 (Wed, 05 Sep 2012)
New Revision: 23652
Modified:
gnunet/src/transport/test_plugin_transport.c
Log:
- fix for 2nd cb
Modified: gnunet/src/transport/test_plugin_transport.c
===================================================================
--- gnunet/src/transport/test_plugin_transport.c 2012-09-05 09:00:20 UTC
(rev 23651)
+++ gnunet/src/transport/test_plugin_transport.c 2012-09-05 09:10:42 UTC
(rev 23652)
@@ -287,6 +287,9 @@
return GNUNET_TIME_relative_get_zero_();
}
+
+static int got_reply;
+
/**
* Take the given address and append it to the set of results sent back to
* the client.
@@ -299,13 +302,17 @@
{
if (NULL != buf)
{
+ got_reply = GNUNET_YES;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Pretty address : `%s'\n", buf);
}
else
{
- GNUNET_break (0);
- end_badly_now ();
+ if (GNUNET_NO == got_reply)
+ {
+ GNUNET_break (0);
+ end_badly_now ();
+ }
}
}
@@ -333,7 +340,7 @@
w->addrlen = addrlen;
memcpy (w->addr, addr, addrlen);
GNUNET_CONTAINER_DLL_insert(head, tail, w);
-
+ got_reply = GNUNET_NO;
api->address_pretty_printer (api->cls, plugin, addr, addrlen,
GNUNET_YES, GNUNET_TIME_UNIT_MINUTES,
&address_pretty_printer_cb,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23652 - gnunet/src/transport,
gnunet <=