Fix persistence issue

This commit is contained in:
Yarmo Mackenbach 2021-04-16 11:43:29 +02:00
parent f5964ed305
commit f3e0744c60
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -62,7 +62,7 @@ module.exports.fn = async (data, opts) => {
throw new Error(`XMPP fetcher was not set up properly (${err.message})`)
}
if (!xmpp) {
if (!xmpp || xmpp.status !== 'online') {
const xmppStartRes = await xmppStart(
opts.claims.xmpp.service,
opts.claims.xmpp.username,