Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Process the queue in the right order

  • Loading branch information...
commit 0211438e999291a5915f6d67c2b7586356a2b652 1 parent 288b357
@trotter trotter authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cube/emitter-http.js
View
2  lib/cube/emitter-http.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.