 					logger.err {err, user_id: user._id, sessionSetKey}, "error while adding session key to UserSessions set"
 					return callback(err)
 				callback()
+		UserSessionsManager._checkSessions(user, () ->)
+		null
 
 	untrackSession: (user, sessionId, callback=(err)-> ) ->
 		if !user

redis = require('redis-sharelatex')
rclient = redis.createClient(Settings.redis.web)
logger = require("logger-sharelatex")

module.exports = UserSessionsManager =


					logger.err {err, user_id: user._id, sessionSetKey}, "error while removing session key from UserSessions set"
					return callback(err)
				callback()
		UserSessionsManager._checkSessions(user, () ->)
		null

	revokeAllUserSessions: (user, callback=(err)->) ->
		if !user
