explicitly clear onDecoded callback

This commit is contained in:
nkzawa
2017-07-14 14:11:27 +09:00
parent 2ec4167eb8
commit ad4449bfee

View File

@@ -507,6 +507,7 @@ public class Manager extends Emitter {
On.Handle sub; On.Handle sub;
while ((sub = this.subs.poll()) != null) sub.destroy(); while ((sub = this.subs.poll()) != null) sub.destroy();
this.decoder.onDecoded(null);
this.packetBuffer.clear(); this.packetBuffer.clear();
this.encoding = false; this.encoding = false;