mirror of
https://github.com/TheNetsky/Microsoft-Rewards-Script.git
synced 2026-01-10 18:36: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
|
||||
main().catch(error => {
|
||||
log('main', 'MAIN-ERROR', `Error running bots: ${error}`, 'error')
|
||||
// CommunityReporter disabled
|
||||
process.exit(1)
|
||||
})
|
||||
if (require.main === module) {
|
||||
main().catch(error => {
|
||||
log('main', 'MAIN-ERROR', `Error running bots: ${error}`, 'error')
|
||||
// CommunityReporter disabled
|
||||
process.exit(1)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user