From 6f9580bae26976903c000d4251b05773e43c39b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 9 Jun 2020 09:52:56 +0200 Subject: [PATCH] Allow the metro to exit if this is the only active server in the event loop system --- metro/metrics-collector.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metro/metrics-collector.js b/metro/metrics-collector.js index 50ef3cd5..bf488c17 100644 --- a/metro/metrics-collector.js +++ b/metro/metrics-collector.js @@ -115,4 +115,5 @@ http res.writeHead(200, { 'Content-Type': register.contentType }); res.end(register.metrics()); }) - .listen(port); + .listen(port) + .unref();