diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-29 14:11:29 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-29 14:11:29 +0200 |
commit | d1fe0504e7e7e2b2242316eb5be07099351bb802 (patch) | |
tree | 957b2a954335cb02d69ad51c90c000809ffbc3a0 /tools | |
parent | f98cf3899499baf3847ece50b41d4e3a733a674d (diff) | |
download | prosody-d1fe0504e7e7e2b2242316eb5be07099351bb802.tar.gz prosody-d1fe0504e7e7e2b2242316eb5be07099351bb802.zip |
migrator: Silence assert in core.moduleapi
The assert triggers because we're not loading the stanza route, because
we are unlikely to need it during migration.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/migration/prosody-migrator.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/migration/prosody-migrator.lua b/tools/migration/prosody-migrator.lua index 511d0730..26b9ef58 100644 --- a/tools/migration/prosody-migrator.lua +++ b/tools/migration/prosody-migrator.lua @@ -54,6 +54,10 @@ do prosody.config_loaded = true; startup.load_libraries(); startup.init_http_client(); + prosody.core_post_stanza = function () + -- silence assert in core.moduleapi + error("Attempt to send stanzas from inside migrator.", 0); + end end -- Command-line parsing |