Commit a73a118
fix: Stop reconnect timer when event source is closed. (#29)
Currently the reconnect timer would elapse, discover the event source
was closed, and then do nothing. This is fine, but leaving the timer
open means that it can keep user applications running when they are
trying to exit. Stopping the timer will ensure we don't have any
outstanding async tasks that could prevent node from shutting down.
---------
Co-authored-by: Yusinto Ngadiman <yusinto@gmail.com>1 parent bcceb35 commit a73a118
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7322 | 7322 | | |
7323 | 7323 | | |
7324 | 7324 | | |
| 7325 | + | |
| 7326 | + | |
7325 | 7327 | | |
7326 | 7328 | | |
7327 | 7329 | | |
| |||
7430 | 7432 | | |
7431 | 7433 | | |
7432 | 7434 | | |
7433 | | - | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
7434 | 7438 | | |
7435 | 7439 | | |
7436 | 7440 | | |
| |||
7605 | 7609 | | |
7606 | 7610 | | |
7607 | 7611 | | |
| 7612 | + | |
| 7613 | + | |
7608 | 7614 | | |
7609 | 7615 | | |
7610 | 7616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
196 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
197 | 201 | | |
198 | 202 | | |
199 | 203 | | |
| |||
368 | 372 | | |
369 | 373 | | |
370 | 374 | | |
| 375 | + | |
| 376 | + | |
371 | 377 | | |
372 | 378 | | |
373 | 379 | | |
| |||
0 commit comments