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/gnunet-peerstore.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/gnunet-peerstore.c')
-rw-r--r-- | src/peerstore/gnunet-peerstore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peerstore/gnunet-peerstore.c b/src/peerstore/gnunet-peerstore.c index ec2af0a4f..f99c42819 100644 --- a/src/peerstore/gnunet-peerstore.c +++ b/src/peerstore/gnunet-peerstore.c | |||
@@ -46,7 +46,7 @@ shutdown_task (void *cls, | |||
46 | { | 46 | { |
47 | if(NULL != peerstore_handle) | 47 | if(NULL != peerstore_handle) |
48 | { | 48 | { |
49 | GNUNET_PEERSTORE_disconnect(peerstore_handle); | 49 | GNUNET_PEERSTORE_disconnect(peerstore_handle, GNUNET_YES); |
50 | peerstore_handle = NULL; | 50 | peerstore_handle = NULL; |
51 | } | 51 | } |
52 | } | 52 | } |