summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorYukai Huang2016-10-08 19:58:26 +0800
committerYukai Huang2016-10-08 19:58:26 +0800
commit0be342c44d5b6287c67922758f076e7897f6c3a8 (patch)
tree59674e4fd433b4343f37ae0d32850fd2da6ee63a /public
parentebee5a8d05a0282f5f584abc7d1eaa26d9d17ad8 (diff)
Fix mutiple socket.on handling
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 90a3daf4..dff278c9 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -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 () {