diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-17 13:32:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-17 13:32:17 +0000 |
commit | e74208cef672a3e2689329fdb76439b4b5db01f8 (patch) | |
tree | 7e4d2649d6a6478ef28180782f27e528e93c0abc /src/fs/test_fs_publish_persistence.c | |
parent | 4d221c9bfc9d72fca21e07b6b052d007c75ebedc (diff) | |
download | gnunet-e74208cef672a3e2689329fdb76439b4b5db01f8.tar.gz gnunet-e74208cef672a3e2689329fdb76439b4b5db01f8.zip |
cleaner datastore handling, fixing test failure
Diffstat (limited to 'src/fs/test_fs_publish_persistence.c')
-rw-r--r-- | src/fs/test_fs_publish_persistence.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/fs/test_fs_publish_persistence.c b/src/fs/test_fs_publish_persistence.c index fdb5beb7d..e06d5c18f 100644 --- a/src/fs/test_fs_publish_persistence.c +++ b/src/fs/test_fs_publish_persistence.c | |||
@@ -147,9 +147,8 @@ progress_cb (void *cls, | |||
147 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value) / 1024)); | 147 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value) / 1024)); |
148 | if (0 == strcmp ("publish-context-dir", | 148 | if (0 == strcmp ("publish-context-dir", |
149 | event->value.publish.cctx)) | 149 | event->value.publish.cctx)) |
150 | GNUNET_SCHEDULER_add_continuation (&abort_publish_task, | 150 | GNUNET_SCHEDULER_add_now (&abort_publish_task, |
151 | NULL, | 151 | NULL); |
152 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
153 | break; | 152 | break; |
154 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: | 153 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: |
155 | consider_restart (event->status); | 154 | consider_restart (event->status); |
@@ -180,11 +179,8 @@ progress_cb (void *cls, | |||
180 | "Error publishing file: %s\n", | 179 | "Error publishing file: %s\n", |
181 | event->value.publish.specifics.error.message); | 180 | event->value.publish.specifics.error.message); |
182 | err = 1; | 181 | err = 1; |
183 | if (0 == strcmp ("publish-context-dir", | 182 | GNUNET_SCHEDULER_add_now (&abort_publish_task, |
184 | event->value.publish.cctx)) | 183 | NULL); |
185 | GNUNET_SCHEDULER_add_continuation (&abort_publish_task, | ||
186 | NULL, | ||
187 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
188 | break; | 184 | break; |
189 | case GNUNET_FS_STATUS_PUBLISH_START: | 185 | case GNUNET_FS_STATUS_PUBLISH_START: |
190 | consider_restart (event->status); | 186 | consider_restart (event->status); |