mirror of
https://github.com/TheNetsky/Microsoft-Rewards-Script.git
synced 2026-01-11 02:46:17 +00:00
fix scheduler exit suddenly (#368)
This commit is contained in:
12
src/index.ts
12
src/index.ts
@@ -1291,8 +1291,10 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start the bots
|
// Start the bots
|
||||||
main().catch(error => {
|
if (require.main === module) {
|
||||||
log('main', 'MAIN-ERROR', `Error running bots: ${error}`, 'error')
|
main().catch(error => {
|
||||||
// CommunityReporter disabled
|
log('main', 'MAIN-ERROR', `Error running bots: ${error}`, 'error')
|
||||||
process.exit(1)
|
// CommunityReporter disabled
|
||||||
})
|
process.exit(1)
|
||||||
|
})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user