From 3add90628f3871797794bbd727c5828ff661dc4f Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sat, 30 Mar 2019 12:09:02 -0700 Subject: [PATCH] Fix SIGINT force shutdown --- actix-server/CHANGES.md | 7 +++++++ actix-server/Cargo.toml | 2 +- actix-server/src/builder.rs | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/actix-server/CHANGES.md b/actix-server/CHANGES.md index ea01452864..cb4ca802f7 100644 --- a/actix-server/CHANGES.md +++ b/actix-server/CHANGES.md @@ -1,5 +1,12 @@ # Changes +## [0.4.2] - 2019-03-30 + +### Fixed + +* Fix SIGINT force shutdown + + ## [0.4.1] - 2019-03-14 ### Added diff --git a/actix-server/Cargo.toml b/actix-server/Cargo.toml index 5143aecf32..bde1ce9acf 100644 --- a/actix-server/Cargo.toml +++ b/actix-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-server" -version = "0.4.1" +version = "0.4.2" authors = ["Nikolay Kim "] description = "Actix server - General purpose tcp server" keywords = ["network", "framework", "async", "futures"] diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs index aac8064ab0..7cd8bfabc2 100644 --- a/actix-server/src/builder.rs +++ b/actix-server/src/builder.rs @@ -328,7 +328,7 @@ impl ServerBuilder { self.accept.send(Command::Stop); // stop workers - if !self.workers.is_empty() { + if !self.workers.is_empty() && graceful { spawn( futures_unordered( self.workers