diff --git a/actix-server/src/worker.rs b/actix-server/src/worker.rs index f249c119..53e11db8 100644 --- a/actix-server/src/worker.rs +++ b/actix-server/src/worker.rs @@ -422,6 +422,12 @@ impl Default for WorkerState { } } +impl Drop for ServerWorker { + fn drop(&mut self) { + Arbiter::current().stop(); + } +} + impl Future for ServerWorker { type Output = ();