forked from EventSource/eventsource
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
bcceb35
commit a73a118
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters