]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/queuedaemon.php
File_redirection->getFile could never get the file anyway if $redir->file_id was...
[quix0rs-gnu-social.git] / scripts / queuedaemon.php
index 582a3dd888f825ed0ff398a77629fffab9bf9628..8fb0f8e0aeab83aa0c48e9fd6636b4a278e84171 100755 (executable)
@@ -168,7 +168,9 @@ if (have_option('t')) {
 } else if (have_option('--threads')) {
     $threads = intval(get_option_value('--threads'));
 } else {
-    $threads = 0;
+    //If there is no argument for number of threads
+    //Try reading a config option for the number
+    $threads = common_config('queue','threads');
 }
 if (!$threads) {
     $threads = getProcessorCount();