From f3e0744c604523279d006abd769ebf335fd4168a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 16 Apr 2021 11:43:29 +0200 Subject: [PATCH] Fix persistence issue --- src/fetcher/xmpp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetcher/xmpp.js b/src/fetcher/xmpp.js index 2b7a340..1895044 100644 --- a/src/fetcher/xmpp.js +++ b/src/fetcher/xmpp.js @@ -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,