Fix mutiple socket.on handling
This commit is contained in:
parent
ebee5a8d05
commit
0be342c44d
1 changed files with 1 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue