aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-29 14:11:29 +0200
committerKim Alvefur <zash@zash.se>2021-07-29 14:11:29 +0200
commitd1fe0504e7e7e2b2242316eb5be07099351bb802 (patch)
tree957b2a954335cb02d69ad51c90c000809ffbc3a0
parentmigrator: Use parsed command line flags already parsed by util.startup (diff)
downloadprosody-d1fe0504e7e7e2b2242316eb5be07099351bb802.tar.xz
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.
-rw-r--r--tools/migration/prosody-migrator.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/migration/prosody-migrator.lua b/tools/migration/prosody-migrator.lua
index 511d07308..26b9ef589 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