Remove unnecessary thread safety

This commit is contained in:
Tulir Asokan
2018-02-10 12:13:13 +02:00
parent 55dc1ff3c7
commit a7c81e46e3
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ class AppService:
self.log.exception("Exception in Matrix event handler")
for handler in self.event_handlers:
asyncio.ensure_future(try_handle(handler))
asyncio.ensure_future(try_handle(handler), loop=self.loop)
def matrix_event_handler(self, func):
self.event_handlers.append(func)