Merge pull request #143 from shocknet/bug/channel_backup
Removed Channel Backups error
This commit is contained in:
commit
ab786aac58
1 changed files with 4 additions and 2 deletions
|
|
@ -582,13 +582,15 @@ module.exports = async (
|
||||||
logger.error('Channel backup stream error:', err)
|
logger.error('Channel backup stream error:', err)
|
||||||
})
|
})
|
||||||
stream.on('status', status => {
|
stream.on('status', status => {
|
||||||
logger.error('Channel backup stream status:', status)
|
|
||||||
if (status.code === 14) {
|
if (status.code === 14) {
|
||||||
// Prevents call stack overflow exceptions
|
// Prevents call stack overflow exceptions
|
||||||
process.nextTick(onNewChannelBackup)
|
process.nextTick(() => setTimeout(onNewChannelBackup, 30000))
|
||||||
|
} else {
|
||||||
|
logger.error('Channel backup stream status:', status)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
onNewChannelBackup()
|
onNewChannelBackup()
|
||||||
|
|
||||||
// Generate auth token and send it as a JSON response
|
// Generate auth token and send it as a JSON response
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue