ignore a wrong event name

This commit is contained in:
Naoyuki Kanezawa
2015-04-23 01:32:40 +09:00
parent 5301cd3660
commit d86c2e926f

View File

@@ -312,7 +312,8 @@ public class Socket extends Emitter {
} }
if (this.connected) { if (this.connected) {
String event = (String)args.remove(0); if (args.size() == 0) return;
String event = args.remove(0).toString();
super.emit(event, args.toArray()); super.emit(event, args.toArray());
} else { } else {
this.receiveBuffer.add(args); this.receiveBuffer.add(args);