diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 77322a5c10da64f1943ed360aaf300338adef8d7..beafa516623e13dc5ea293b871e7985924670440 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -360,7 +360,7 @@ class Auth(object):
                 default=[""]
             )[0]
             if user and access_token and ip_addr:
-                yield self.store.insert_client_ip(
+                self.store.insert_client_ip(
                     user=user,
                     access_token=access_token,
                     device_id=user_info["device_id"],