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(); }
private void cleanup() { On.Handle sub; while ((sub = this.subs.poll()) != null) sub.destroy(); }