 +NobleBindings.prototype.scheduleNextCommand = function() {
 +  log.debug('scheduleNextCommand()');
 +  assert(this.commandQueue.length);
++  if (this.nextCommandScheduled) {
++    log.info('Next command already scheduled, ignoring');
++    return;
++  }
++  this.nextCommandScheduled = true;
 +
 +  process.nextTick(function() {
++    this.nextCommandScheduled = false;
 +    assert(this.commandQueue.length);
 +    this.commandQueue.shift();
 +    this.runCurrentCommand();

+  // Extra data needed by the currently executing command. Reset before the next
+  // command runs.
+  this.currentCommandInfo = null;
+};
+
+util.inherits(NobleBindings, events.EventEmitter);

     "./mac/bindings": false,
     "./hci-socket/bindings": false
-- 
2.11.0 (Apple Git-81)

