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/sensordashboard | |
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/sensordashboard')
-rw-r--r-- | src/sensordashboard/gnunet-service-sensordashboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sensordashboard/gnunet-service-sensordashboard.c b/src/sensordashboard/gnunet-service-sensordashboard.c index 19acec4da..e93a8cbfd 100644 --- a/src/sensordashboard/gnunet-service-sensordashboard.c +++ b/src/sensordashboard/gnunet-service-sensordashboard.c | |||
@@ -68,7 +68,7 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
68 | } | 68 | } |
69 | if (NULL != peerstore) | 69 | if (NULL != peerstore) |
70 | { | 70 | { |
71 | GNUNET_PEERSTORE_disconnect (peerstore); | 71 | GNUNET_PEERSTORE_disconnect (peerstore, GNUNET_YES); |
72 | peerstore = NULL; | 72 | peerstore = NULL; |
73 | } | 73 | } |
74 | GNUNET_SENSOR_destroy_sensors (sensors); | 74 | GNUNET_SENSOR_destroy_sensors (sensors); |