Skip to content

Commit ebdb7ac

Browse files
committed
fix: resource close hang
Signed-off-by: Sam Gammon <[email protected]>
1 parent 726ed3a commit ebdb7ac

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

dist/cleanup/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cleanup/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/diagnostics.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,11 @@ export async function error(err: Error | unknown, fatal = true): Promise<void> {
219219
* Exit hook for making sure Sentry finishes reporting.
220220
*/
221221
export async function onExit(): Promise<void> {
222-
core.debug('Closing Sentry client')
222+
core.debug('Closing resources')
223223
try {
224224
httpClient.dispose()
225225
} catch (err) {
226226
// Ignore.
227227
}
228-
try {
229-
await Sentry.close(2000)
230-
} catch (err) {
231-
// Ignore.
232-
}
228+
process.exit(0)
233229
}

0 commit comments

Comments
 (0)