Skip to content

Commit

Permalink
fix forceExit default value
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhildebrandt committed Feb 11, 2023
1 parent bbea39a commit 4d7bb89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2022 Sebastian Hildebrandt
Copyright (c) 2015-2023 Sebastian Hildebrandt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ npm install debug express koa fastify

| Version | Date | Comment |
| ------- | ---------- | ----------------------------------------------------------------- |
| 3.1.12 | 2023-02-11 | fix forceExit default value |
| 3.1.11 | 2022-11-18 | updated examples |
| 3.1.10 | 2022-11-17 | forceExit handling adapted |
| 3.1.9 | 2022-10-24 | updated docs, code cleanup |
Expand Down Expand Up @@ -303,7 +304,7 @@ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebra

>The [`MIT`][license-url] License (MIT)
>
>Copyright © 2015-2022 Sebastian Hildebrandt, [+innovations](http://www.plus-innovations.com).
>Copyright © 2015-2023 Sebastian Hildebrandt, [+innovations](http://www.plus-innovations.com).
>
>Permission is hereby granted, free of charge, to any person obtaining a copy
>of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// -----------------------------------------------------------------------------
// gracefully shuts downs http server
// can be used with http, express, koa, ...
// (c) 2022 Sebastian Hildebrandt
// (c) 2023 Sebastian Hildebrandt
// License: MIT
// =============================================================================

Expand Down Expand Up @@ -77,7 +77,7 @@ function GracefulShutdown(server, opts) {
debug('received shut down signal', signal);
shutdown(signal)
.then(() => {
if (opts.forceExit) {
if (options.forceExit) {
process.exit(failed ? 1 : 0);
}
})
Expand Down

0 comments on commit 4d7bb89

Please sign in to comment.