mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
removed override no longer needed
This commit is contained in:
@@ -45,12 +45,6 @@ function onConnection(socket) {
|
||||
|
||||
onConnect(socket);
|
||||
|
||||
// see https://github.com/Automattic/socket.io/issues/1814 and
|
||||
// http://stackoverflow.com/questions/25830415/get-the-list-of-rooms-the-client-is-currently-in-on-disconnect-event
|
||||
socket.onclose = function(reason) {
|
||||
Object.getPrototypeOf(this).onclose.call(this, {reason: reason, rooms: socket.rooms.slice()});
|
||||
};
|
||||
|
||||
socket.on('disconnect', function(data) {
|
||||
onDisconnect(socket, data);
|
||||
});
|
||||
@@ -79,7 +73,7 @@ function onConnect(socket) {
|
||||
}
|
||||
}
|
||||
|
||||
function onDisconnect(socket, data) {
|
||||
function onDisconnect(socket) {
|
||||
if (socket.uid) {
|
||||
var socketCount = Sockets.getUserSocketCount(socket.uid);
|
||||
if (socketCount <= 1) {
|
||||
|
||||
Reference in New Issue
Block a user