From: psc Date: Wed, 10 Jun 2009 12:33:01 +0000 (+0000) Subject: Make new queue items in gotomasses appear instant X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b73a59edfc23303b3b48ed88ae28af9f643ffb62;p=gosa.git Make new queue items in gotomasses appear instant Sleep a second, before reloading the list of queued jobs, to avoid timing issues when adding new queue entries, that are not listed, immediately after they've been added, because gosa-si appearently needs some time to process it. (Trac: #2658) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13702 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc b/trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc index ad278eaba..a953833a4 100644 --- a/trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc +++ b/trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc @@ -807,7 +807,10 @@ class gotomasses extends plugin $sort.= " DESC"; } } - + + /* Sleep a second to avoid timing issues when adding new items */ + sleep(1); + /* Get entries. */ $start = $this->start; $stop = $this->range;