diff --git a/sat/plugins/plugin_xep_0313.py b/sat/plugins/plugin_xep_0313.py index 534a1d26..e357dcaf 100644 --- a/sat/plugins/plugin_xep_0313.py +++ b/sat/plugins/plugin_xep_0313.py @@ -159,8 +159,8 @@ class XEP_0313(object): log.info(_("We have received {num_mess} message(s) while offline.") .format(num_mess=count)) - async def profileConnected(self, client): - await self.resume(client) + def profileConnected(self, client): + defer.ensureDeferred(self.resume(client)) def getHandler(self, client): mam_client = client._mam = SatMAMClient(self)