Commit 5bc34d3
Fix unhandledRejection handler: tighten pattern match, use nextTick for rethrow
- Use /request with tag.*timed out/ regex instead of .includes('timed out')
to avoid suppressing unrelated timeout errors from other sources
- Use process.nextTick(() => { throw reason }) instead of bare throw inside
the handler so non-lutron-leap rejections reliably crash the process
(in Node.js 15+, throw inside unhandledRejection re-emits rather than exits)
Agent-Logs-Url: https://github.com/homebridge-plugins/homebridge-lutron/sessions/1d73447e-e125-477e-9d72-433b89c8167f
Co-authored-by: donavanbecker <9875439+donavanbecker@users.noreply.github.com>1 parent fb03b9f commit 5bc34d3
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
168 | 170 | | |
169 | | - | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
0 commit comments