private void cleanup() {
    logger.fine("cleanup");

    On.Handle sub;
    while ((sub = this.subs.poll()) != null) sub.destroy();

    this.packetBuffer.clear();
    this.encoding = false;
    this.lastPing = null;

    this.decoder.destroy();
  }
示例#2
0
 private void cleanup() {
   On.Handle sub;
   while ((sub = this.subs.poll()) != null) sub.destroy();
 }