diff options
Diffstat (limited to 'src/namestore/test_namestore_api_monitoring_existing.c')
-rw-r--r-- | src/namestore/test_namestore_api_monitoring_existing.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/namestore/test_namestore_api_monitoring_existing.c b/src/namestore/test_namestore_api_monitoring_existing.c index 366f5739f..95907f34a 100644 --- a/src/namestore/test_namestore_api_monitoring_existing.c +++ b/src/namestore/test_namestore_api_monitoring_existing.c | |||
@@ -250,25 +250,6 @@ put_cont (void *cls, | |||
250 | 250 | ||
251 | if (3 == c) | 251 | if (3 == c) |
252 | { | 252 | { |
253 | /* Start monitoring */ | ||
254 | zm = GNUNET_NAMESTORE_zone_monitor_start (cfg, | ||
255 | &privkey, | ||
256 | GNUNET_YES, | ||
257 | &fail_cb, | ||
258 | NULL, | ||
259 | &zone_proc, | ||
260 | NULL, | ||
261 | &sync_cb, | ||
262 | NULL); | ||
263 | if (NULL == zm) | ||
264 | { | ||
265 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
266 | "Failed to create zone monitor\n"); | ||
267 | GNUNET_break (0); | ||
268 | res = 1; | ||
269 | GNUNET_SCHEDULER_shutdown (); | ||
270 | return; | ||
271 | } | ||
272 | } | 253 | } |
273 | } | 254 | } |
274 | 255 | ||
@@ -324,6 +305,25 @@ run (void *cls, | |||
324 | NULL); | 305 | NULL); |
325 | return; | 306 | return; |
326 | } | 307 | } |
308 | /* Start monitoring */ | ||
309 | zm = GNUNET_NAMESTORE_zone_monitor_start (cfg, | ||
310 | &privkey, | ||
311 | GNUNET_YES, | ||
312 | &fail_cb, | ||
313 | NULL, | ||
314 | &zone_proc, | ||
315 | NULL, | ||
316 | &sync_cb, | ||
317 | NULL); | ||
318 | if (NULL == zm) | ||
319 | { | ||
320 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
321 | "Failed to create zone monitor\n"); | ||
322 | GNUNET_break (0); | ||
323 | res = 1; | ||
324 | GNUNET_SCHEDULER_shutdown (); | ||
325 | return; | ||
326 | } | ||
327 | 327 | ||
328 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 328 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
329 | "Created record 3\n"); | 329 | "Created record 3\n"); |