diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-23 14:45:44 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-23 14:45:44 -0700 |
commit | 0dab5f58723cba8b5915c694a8200e242cc9ec02 (patch) | |
tree | 240bc8ff72c69bde7789d08493eeee87de1f1a38 /lib/dbqueuemanager.php | |
parent | 749d9bfbbf65d962804bea1fa510039da185179f (diff) | |
parent | 7fff454ff931635dc1aca6a67af194b25567a65b (diff) |
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
Diffstat (limited to 'lib/dbqueuemanager.php')
-rw-r--r-- | lib/dbqueuemanager.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/dbqueuemanager.php b/lib/dbqueuemanager.php index a37a8ffdf..1df5af6c1 100644 --- a/lib/dbqueuemanager.php +++ b/lib/dbqueuemanager.php @@ -88,7 +88,9 @@ class DBQueueManager extends QueueManager do { $qi = Queue_item::top($queue); - if (!empty($qi)) { + if (empty($qi)) { + sleep(1); + } else { $notice = Notice::staticGet('id', $qi->notice_id); if (!empty($notice)) { $result = $notice; |