summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-05-03 12:29:34 -0700
committerGravatar GitHub <noreply@github.com> 2022-05-03 15:29:34 -0400
commit6d5ef41b1ed77ccc67f71e91adeab63a50a494a8 (patch)
treef5c9e444153d13c02ac2a2d55cb80db1041c2981
parent8f8f05c1b99d073a43af3020ba3922ea2d5b466d (diff)
downloadastro-6d5ef41b1ed77ccc67f71e91adeab63a50a494a8.tar.gz
astro-6d5ef41b1ed77ccc67f71e91adeab63a50a494a8.tar.zst
astro-6d5ef41b1ed77ccc67f71e91adeab63a50a494a8.zip
fix cannot exit astro bug (#3276)
* fix cannot exit astro bug * Create loud-tigers-draw.md
-rw-r--r--.changeset/loud-tigers-draw.md5
-rw-r--r--packages/telemetry/src/index.ts5
2 files changed, 8 insertions, 2 deletions
diff --git a/.changeset/loud-tigers-draw.md b/.changeset/loud-tigers-draw.md
new file mode 100644
index 000000000..80031cf54
--- /dev/null
+++ b/.changeset/loud-tigers-draw.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/telemetry": patch
+---
+
+fix "cannot exit astro" bug
diff --git a/packages/telemetry/src/index.ts b/packages/telemetry/src/index.ts
index ef7157dfc..a11f4ae0e 100644
--- a/packages/telemetry/src/index.ts
+++ b/packages/telemetry/src/index.ts
@@ -49,8 +49,9 @@ export class AstroTelemetry {
}
constructor(private opts: AstroTelemetryOptions) {
- // When the process exits, flush any queued promises
- process.on('SIGINT', () => this.flush());
+ // TODO: When the process exits, flush any queued promises
+ // This line caused a "cannot exist astro" error, needs to be revisited.
+ // process.on('SIGINT', () => this.flush());
}
// Util to get value from config or set it if missing