Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Zoramite
Copy link
Member

The timer execution was adding a promise .then handler but not handling exceptions.

This caused the error to be added to processes' unhandled exceptions even when the promise.all was also catching the error.

This change wraps the timer stopping and the triggering of the plugin hook into an async function. The Promise.all can correctly correlate the hooks while still getting accurate time execution.

The timer execution adding a promise handler but not correctly handling
exceptions and being added to process unhandled exceptions even when
the promise.all was also catching the error.

 # Please enter the commit message for your changes. Lines starting
@Zoramite Zoramite added the bug Something isn't working label Mar 22, 2023
@Zoramite Zoramite requested a review from jeremydw March 22, 2023 13:56
@Zoramite Zoramite self-assigned this Mar 22, 2023
@jeremydw jeremydw requested a review from stevenle March 22, 2023 15:10
@stevenle stevenle removed their request for review March 22, 2023 15:16
@stevenle
Copy link
Member

(removing myself from review, i have 7 launches in the next 2 weeks and am not familiar with amagaki's codebase enough to provide quality guidance here.)

@jeremydw
Copy link
Member

@Zoramite I forget how this was originally set up and used (IIRC you may have been the original author!) so I won't be able to provide too much deep thought either here but if it works for you it works for me, so LGTM.

@Zoramite Zoramite merged commit 85db1a5 into main Mar 22, 2023
@Zoramite Zoramite deleted the fix/async-trigger branch March 22, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants