From 62bacc5968ffa7bbdedd9a2847b132f0d0719245 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Mon, 30 May 2016 09:13:09 -0700 Subject: [PATCH] now-alias: close socket gracefully --- bin/now-alias | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/now-alias b/bin/now-alias index e0bed85..52d0b86 100755 --- a/bin/now-alias +++ b/bin/now-alias @@ -84,7 +84,6 @@ if (argv.help || !subcommand) { .then(async (token) => { try { await run(token); - exit(0); } catch (err) { if (err.userError) { error(err.message); @@ -164,6 +163,8 @@ async function run (token) { exit(1); } } + + alias.close(); } async function sort (aliases) {