summaryrefslogtreecommitdiff
path: root/lib/stompqueuemanager.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-09 11:40:01 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-09 11:40:01 -0400
commit1daad01f362d72e6ed89f415546220016c32404a (patch)
tree5cf8f9f3a5ce138634c1ee9abf85435c7155ec7d /lib/stompqueuemanager.php
parentd7611009b11c489abbc7c52d51ec859fd9fa5600 (diff)
slightly better timing
Diffstat (limited to 'lib/stompqueuemanager.php')
-rw-r--r--lib/stompqueuemanager.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/stompqueuemanager.php b/lib/stompqueuemanager.php
index 4cefba113..4d89806f8 100644
--- a/lib/stompqueuemanager.php
+++ b/lib/stompqueuemanager.php
@@ -117,9 +117,12 @@ class StompQueueManager
}
unset($frame);
- }
- $handler->idle(0);
+ $handler->idle(QUEUE_HANDLER_HIT_IDLE);
+
+ } else {
+ $handler->idle(QUEUE_HANDLER_MISS_IDLE);
+ }
}
$this->con->unsubscribe($this->_queueName($queue));