summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-04-03 15:44:19 +0100
committerRichard van der Hoff <richard@matrix.org>2017-04-03 15:44:19 +0100
commit7eb9f34cc3c2845a0ef35c9524f7ecc14339f7c1 (patch)
treecd0c0f7248407f295ad874d5bfe32d5be76fcf4c /synapse/handlers/message.py
parentRemove more spurious `PreserveLoggingContext`s (diff)
downloadsynapse-7eb9f34cc3c2845a0ef35c9524f7ecc14339f7c1.tar.xz
Remove spurious yield
In `MessageHandler`, remove `yield` on call to `Notifier.on_new_room_event`:
it doesn't return anything anyway.
Diffstat (limited to '')
-rw-r--r--synapse/handlers/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 7a498af5a2..348056add5 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -612,7 +612,7 @@ class MessageHandler(BaseHandler):
         @defer.inlineCallbacks
         def _notify():
             yield run_on_reactor()
-            yield self.notifier.on_new_room_event(
+            self.notifier.on_new_room_event(
                 event, event_stream_id, max_stream_id,
                 extra_users=extra_users
             )