Replace other time.time().

This commit is contained in:
David Baker 2016-03-16 15:51:28 +00:00
parent 742b6c6d15
commit 9671e6750c

View File

@ -27,7 +27,6 @@ import logging
import bcrypt
import pymacaroons
import simplejson
import time
import synapse.util.stringutils as stringutils
@ -485,7 +484,7 @@ class AuthHandler(BaseHandler):
def _save_session(self, session):
# TODO: Persistent storage
logger.debug("Saving session %s", session)
session["last_used"] = time.time()
session["last_used"] = self.hs.get_clock().time_msec()
self.sessions[session["id"]] = session
self._prune_sessions()