Permalink
Browse files

Process the queue in the right order

  • Loading branch information...
1 parent 288b357 commit 0211438e999291a5915f6d67c2b7586356a2b652 @trotter trotter committed May 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cube/emitter-http.js
View
@@ -9,7 +9,7 @@ module.exports = function(protocol, host, port) {
if (protocol != "http:") throw new Error("invalid HTTP protocol");
function send() {
- var event = queue.pop();
+ var event = queue.shift();
if (!event) return;
var body = JSON.stringify(event);

0 comments on commit 0211438

Please sign in to comment.