diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-01 21:12:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-01 21:12:17 +0000 |
commit | 64c442461b84953230d3dc4e78cb649db6c54abc (patch) | |
tree | 49ec875b32ce171aac2bbae1b5fcaad516a94cf6 /src/peerinfo | |
parent | 0413c7690e087a0514447a87bc8118b2a244c902 (diff) | |
download | gnunet-64c442461b84953230d3dc4e78cb649db6c54abc.tar.gz gnunet-64c442461b84953230d3dc4e78cb649db6c54abc.zip |
changing scheduler priorities to revert to DEFAULT instead of inheriting parent-task priority unless something else is explicitly specified
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index 799fdc6d8..d6e52d4b4 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c | |||
@@ -293,8 +293,9 @@ cron_scan_directory_data_hosts (void *cls, | |||
293 | count = 0; | 293 | count = 0; |
294 | if (GNUNET_SYSERR == GNUNET_DISK_directory_create (networkIdDirectory)) | 294 | if (GNUNET_SYSERR == GNUNET_DISK_directory_create (networkIdDirectory)) |
295 | { | 295 | { |
296 | GNUNET_SCHEDULER_add_delayed (DATA_HOST_FREQ, | 296 | GNUNET_SCHEDULER_add_delayed_with_priority (DATA_HOST_FREQ, |
297 | &cron_scan_directory_data_hosts, NULL); | 297 | GNUNET_SCHEDULER_PRIORITY_IDLE, |
298 | &cron_scan_directory_data_hosts, NULL); | ||
298 | return; | 299 | return; |
299 | } | 300 | } |
300 | GNUNET_DISK_directory_scan (networkIdDirectory, | 301 | GNUNET_DISK_directory_scan (networkIdDirectory, |
@@ -302,8 +303,10 @@ cron_scan_directory_data_hosts (void *cls, | |||
302 | if ((0 == count) && (0 == (++retries & 31))) | 303 | if ((0 == count) && (0 == (++retries & 31))) |
303 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING | GNUNET_ERROR_TYPE_BULK, | 304 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING | GNUNET_ERROR_TYPE_BULK, |
304 | _("Still no peers found in `%s'!\n"), networkIdDirectory); | 305 | _("Still no peers found in `%s'!\n"), networkIdDirectory); |
305 | GNUNET_SCHEDULER_add_delayed (DATA_HOST_FREQ, &cron_scan_directory_data_hosts, | 306 | GNUNET_SCHEDULER_add_delayed_with_priority (DATA_HOST_FREQ, |
306 | NULL); | 307 | GNUNET_SCHEDULER_PRIORITY_IDLE, |
308 | &cron_scan_directory_data_hosts, | ||
309 | NULL); | ||
307 | } | 310 | } |
308 | 311 | ||
309 | 312 | ||