Skip to content

Commit 6ac1ff2

Browse files
authored
fix(cleanup): properly remove signal listeners
1 parent c07565e commit 6ac1ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/terminus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function decorateWithSignalHandler (server, options) {
8787
}
8888
}
8989
signals.forEach(
90-
sig => process.on(sig, sig => cleanup(sig))
90+
sig => process.on(sig, cleanup)
9191
)
9292
}
9393

0 commit comments

Comments
 (0)