-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
once
with process 'beforeExit'. (#453)
* Use `once` with process 'beforeExit'. This is because when we call `PostgresStore.destroy`, we put a new task on the event loop. This "revives" the process and so the callback for process 'beforeExit' will be called repeatedly. Signed-off-by: Gnuxie [email protected] * And use once in the beforeExit hook for the postgres-helper too. Signed-off-by: Gnuxie [email protected]
- Loading branch information
Showing
3 changed files
with
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The PostgresStore had a beforeExit hook that would itself prevent the process from exiting. |
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