removed commented out code

v1.18.x
barisusakli 10 years ago
parent 7ae7c50f56
commit 85dfedeedc

@ -20,21 +20,10 @@ var nconf = require('nconf'),
}; };
SocketMeta.reconnected = function(socket, data, callback) { SocketMeta.reconnected = function(socket, data, callback) {
var uid = socket.uid, if (socket.uid) {
sessionID = socket.id; topics.pushUnreadCount(socket.uid);
user.notifications.pushCount(socket.uid);
if (uid) {
topics.pushUnreadCount(uid);
user.notifications.pushCount(uid);
}
/*if (process.env.NODE_ENV === 'development') {
if (uid) {
winston.info('[socket] uid ' + uid + ' (' + sessionID + ') has successfully reconnected.');
} else {
winston.info('[socket] An anonymous user (' + sessionID + ') has successfully reconnected.');
} }
}*/
}; };
emitter.on('nodebb:ready', function() { emitter.on('nodebb:ready', function() {

Loading…
Cancel
Save