Software /
code /
prosody
Comparison
tools/migration/prosody-migrator.lua @ 11731:076ceb405b94
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 29 Jul 2021 14:11:29 +0200 |
parent | 11730:9bf8a0607d12 |
child | 12161:6e7678f6fe9a |
comparison
equal
deleted
inserted
replaced
11730:9bf8a0607d12 | 11731:076ceb405b94 |
---|---|
52 startup.check_dependencies(); | 52 startup.check_dependencies(); |
53 startup.log_startup_warnings(); | 53 startup.log_startup_warnings(); |
54 prosody.config_loaded = true; | 54 prosody.config_loaded = true; |
55 startup.load_libraries(); | 55 startup.load_libraries(); |
56 startup.init_http_client(); | 56 startup.init_http_client(); |
57 prosody.core_post_stanza = function () | |
58 -- silence assert in core.moduleapi | |
59 error("Attempt to send stanzas from inside migrator.", 0); | |
60 end | |
57 end | 61 end |
58 | 62 |
59 -- Command-line parsing | 63 -- Command-line parsing |
60 local options = prosody.opts; | 64 local options = prosody.opts; |
61 | 65 |