Skip to content
Snippets Groups Projects
Commit ba948088 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

Invoke the bot callback in an async wrapper.

Hopefully, should stop plugins blocking the async thread.
parent 6f378bf2
No related branches found
No related tags found
1 merge request!1Invoke the bot callback in an async wrapper.
......@@ -234,7 +234,7 @@ class MatrixBackendAsync(object):
err_room
)
self._annotate_event( event, msg.extras )
self._bot.callback_message( msg )
await self._bot.loop.run_in_executor(None, self._bot.callback_message, msg)
except Exception as e:
log.warning("something went wrong processing a message... %s", e)
import traceback
......@@ -299,7 +299,6 @@ class MatrixBackendAsync(object):
raise Exception("couldn't create management room")
async def send_message(self, msg: backend.Message) -> None:
"""Send a errbot-style message to matrix"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment