diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-07-09 14:46:56 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-07-09 14:46:56 +0000 |
commit | e5d7c67c647e9620c5c1ae77e133a74698443ee1 (patch) | |
tree | 1f49323d5963cc4a77e2648b29744ad5cf6291bf /src/peerstore/test_peerstore_api_watch.c | |
parent | 696df0a02abec9683b34c3097cff4448ad154367 (diff) | |
download | gnunet-e5d7c67c647e9620c5c1ae77e133a74698443ee1.tar.gz gnunet-e5d7c67c647e9620c5c1ae77e133a74698443ee1.zip |
Added flag to API disconnect method to send pending store requests before disconnecting.
Added a test case for it.
Diffstat (limited to 'src/peerstore/test_peerstore_api_watch.c')
-rw-r--r-- | src/peerstore/test_peerstore_api_watch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peerstore/test_peerstore_api_watch.c b/src/peerstore/test_peerstore_api_watch.c index 2ab67eeb9..fb6cdc540 100644 --- a/src/peerstore/test_peerstore_api_watch.c +++ b/src/peerstore/test_peerstore_api_watch.c | |||
@@ -43,7 +43,7 @@ watch_cb(void *cls, | |||
43 | GNUNET_assert(NULL == emsg); | 43 | GNUNET_assert(NULL == emsg); |
44 | GNUNET_assert(0 == strcmp(val, (char *)record->value)); | 44 | GNUNET_assert(0 == strcmp(val, (char *)record->value)); |
45 | ok = 0; | 45 | ok = 0; |
46 | GNUNET_PEERSTORE_disconnect(h); | 46 | GNUNET_PEERSTORE_disconnect(h, GNUNET_NO); |
47 | GNUNET_SCHEDULER_shutdown(); | 47 | GNUNET_SCHEDULER_shutdown(); |
48 | return GNUNET_YES; | 48 | return GNUNET_YES; |
49 | } | 49 | } |