Skip to content

Commit

Permalink
fix: start again
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed May 9, 2024
1 parent 46e6199 commit 8f8f0f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,10 @@ a known bot info object.",

// All async ops of setup complete, run callback
await options?.onStart?.(this.botInfo);
} finally {
} catch (err) {
this.pollingRunning = false;
this.pollingAbortController = undefined;
throw err;
}

// Bot was stopped during `onStart`
Expand Down

0 comments on commit 8f8f0f6

Please sign in to comment.