 					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

					logger.err {err, user_id: user._id, sessionSetKey}, "error while adding session key to UserSessions set"
					return callback(err)
				callback()

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

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

module.exports = UserSessionsManager =

