processPacketQueue method

void processPacketQueue()

If packet buffer is non-empty, begins encoding the next packet in line.

@api private

Implementation

void processPacketQueue() {
  if (packetBuffer.isNotEmpty && encoding != true) {
    var pack = packetBuffer.removeAt(0);
    packet(pack);
  }
}