summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-03-16 15:51:28 +0000
committerDavid Baker <dave@matrix.org>2016-03-16 15:51:28 +0000
commit9671e6750c1756c7f76888b87eedfe7516ef748b (patch)
treec64ed4de3c157929ee5e0f625a4e26fd37e228d5
parentUse hs get_clock instead of time.time() (diff)
downloadsynapse-9671e6750c1756c7f76888b87eedfe7516ef748b.tar.xz
Replace other time.time().
-rw-r--r--synapse/handlers/auth.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index dba6c76dfc..9fa8347098 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -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()