diff options
Diffstat (limited to 'src/datastore/plugin_datastore_postgres.c')
-rw-r--r-- | src/datastore/plugin_datastore_postgres.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c index 44a01fcb8..9886b1c8b 100644 --- a/src/datastore/plugin_datastore_postgres.c +++ b/src/datastore/plugin_datastore_postgres.c | |||
@@ -847,8 +847,7 @@ postgres_plugin_next_request (void *next_cls, | |||
847 | if (GNUNET_YES == end_it) | 847 | if (GNUNET_YES == end_it) |
848 | nrc->end_it = GNUNET_YES; | 848 | nrc->end_it = GNUNET_YES; |
849 | nrc->plugin->next_task_nc = nrc; | 849 | nrc->plugin->next_task_nc = nrc; |
850 | nrc->plugin->next_task = GNUNET_SCHEDULER_add_now (nrc->plugin->env->sched, | 850 | nrc->plugin->next_task = GNUNET_SCHEDULER_add_now (&postgres_next_request_cont, |
851 | &postgres_next_request_cont, | ||
852 | nrc); | 851 | nrc); |
853 | } | 852 | } |
854 | 853 | ||
@@ -1358,8 +1357,7 @@ libgnunet_plugin_datastore_postgres_done (void *cls) | |||
1358 | 1357 | ||
1359 | if (plugin->next_task != GNUNET_SCHEDULER_NO_TASK) | 1358 | if (plugin->next_task != GNUNET_SCHEDULER_NO_TASK) |
1360 | { | 1359 | { |
1361 | GNUNET_SCHEDULER_cancel (plugin->env->sched, | 1360 | GNUNET_SCHEDULER_cancel (plugin->next_task); |
1362 | plugin->next_task); | ||
1363 | plugin->next_task = GNUNET_SCHEDULER_NO_TASK; | 1361 | plugin->next_task = GNUNET_SCHEDULER_NO_TASK; |
1364 | GNUNET_free (plugin->next_task_nc); | 1362 | GNUNET_free (plugin->next_task_nc); |
1365 | plugin->next_task_nc = NULL; | 1363 | plugin->next_task_nc = NULL; |