From 4008493ab2e22d1e7117f9524a7458869afd1b8d Mon Sep 17 00:00:00 2001 From: emad-salah Date: Wed, 12 Aug 2020 15:07:57 +0100 Subject: [PATCH] Removed Channel Backups error --- src/routes.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes.js b/src/routes.js index 8c016615..f64f2691 100644 --- a/src/routes.js +++ b/src/routes.js @@ -582,13 +582,15 @@ module.exports = async ( logger.error('Channel backup stream error:', err) }) stream.on('status', status => { - logger.error('Channel backup stream status:', status) if (status.code === 14) { // Prevents call stack overflow exceptions - process.nextTick(onNewChannelBackup) + process.nextTick(() => setTimeout(onNewChannelBackup, 30000)) + } else { + logger.error('Channel backup stream status:', status) } }) } + onNewChannelBackup() // Generate auth token and send it as a JSON response