summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-03-16 16:18:52 +0000
committerDavid Baker <dave@matrix.org>2016-03-16 16:18:52 +0000
commit3ee7d7dc7f1793beefee433f780af81a64dfa590 (patch)
tree6968773e3b7c5039a741dbfd61d434af009fea33 /synapse
parentstring with symbols is a bit too symboly. (diff)
downloadsynapse-3ee7d7dc7f1793beefee433f780af81a64dfa590.tar.xz
time_msec()
Diffstat (limited to '')
-rw-r--r--synapse/handlers/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 85f9b82712..cdf9e9000c 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -493,7 +493,7 @@ class AuthHandler(BaseHandler):
             last_used = 0
             if 'last_used' in sess:
                 last_used = sess['last_used']
-            if last_used < self.hs.get_clock().time() - AuthHandler.SESSION_EXPIRE_MS:
+            if last_used < self.hs.get_clock().time_msec() - AuthHandler.SESSION_EXPIRE_MS:
                 del self.sessions[sid]
 
     def hash(self, password):