changeset 3222:653fa213d2f8

plugin aesgcm: wait for each splitted message to be sent before sending next one
author Goffi <goffi@goffi.org>
date Sun, 22 Mar 2020 14:01:47 +0100
parents b1c90eedbc12
children 163014f09bf4
files sat/plugins/plugin_sec_aesgcm.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_sec_aesgcm.py	Sun Mar 22 13:59:19 2020 +0100
+++ b/sat/plugins/plugin_sec_aesgcm.py	Sun Mar 22 14:01:47 2020 +0100
@@ -174,7 +174,7 @@
 
         for attachment in extra_attachments:
             # we send all remaining attachment in a separate message
-            client.sendMessage(
+            await client.sendMessage(
                 to_jid=data['to'],
                 message={'': ''},
                 subject=data['subject'],