void removeNext(BrokerQueryCommand next)

Source

void removeNext(BrokerQueryCommand next) {
  nexts.remove(next);
  if (nexts.isEmpty && responses.isEmpty) {
    destroy();
  }
}