mirror of
https://github.com/lucas-labs/claude-plugins.git
synced 2026-05-11 17:15:43 -03:00
Silently return when bot.stop() aborts the setup phase
If bot.stop() is called while bot.start() is still in setup (deleteWebhook/ getMe), grammy rejects with 'Aborted delay'. Expected, not an error.
This commit is contained in:
parent
1daff5f224
commit
3d8042f259
@ -618,6 +618,8 @@ void (async () => {
|
|||||||
await new Promise(r => setTimeout(r, delay))
|
await new Promise(r => setTimeout(r, delay))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
// bot.stop() mid-setup rejects with grammy's "Aborted delay" — expected, not an error.
|
||||||
|
if (err instanceof Error && err.message === 'Aborted delay') return
|
||||||
process.stderr.write(`telegram channel: polling failed: ${err}\n`)
|
process.stderr.write(`telegram channel: polling failed: ${err}\n`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user