Fix mutiple socket.on handling

This commit is contained in:
Yukai Huang 2016-10-08 19:58:26 +08:00
parent ebee5a8d05
commit 0be342c44d

View file

@ -2250,7 +2250,7 @@ var socket = io.connect({
var on = socket.on;
socket.on = function () {
if (!checkLoginStateChanged() && !needRefresh)
on.apply(socket, arguments);
return on.apply(socket, arguments);
};
var emit = socket.emit;
socket.emit = function () {