]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - extlib/Stomp.php
Merge branch 'nightly' into 'nightly'
[quix0rs-gnu-social.git] / extlib / Stomp.php
index b55a4aa6d901c2987524e2806f758925a6027c71..5132ea638be5c5d9b933f128d668ab54de467303 100644 (file)
@@ -324,7 +324,9 @@ class Stomp
     {
         $headers = array('ack' => 'client');
                $headers['activemq.prefetchSize'] = $this->prefetchSize;
-               if ($this->clientId != null) {
+        $headers['prefetch-count'] = '1';
+
+        if ($this->clientId != null) {
                        $headers["activemq.subcriptionName"] = $this->clientId;
                }
         if (isset($properties)) {