Commit 83caf25
fix(msteams): block provider promise until abort signal fires
The msteams provider returned immediately after starting the Express
server. The channel manager in server-channels.ts treats promise
resolution as "provider stopped" and triggers auto-restart with
exponential backoff, causing an infinite restart loop.
Add the same blocking pattern used by the Slack provider: await a
promise that only resolves when the abort signal fires. Also add
{ once: true } to the existing abort listener to prevent leaks.
Closes #27885
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 80d44c9 commit 83caf25
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
302 | 306 | | |
303 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
304 | 318 | | |
305 | 319 | | |
0 commit comments