Merge branch 'master' into refactor/simplify_server_future

This commit is contained in:
fakeshadow 2021-04-15 07:27:28 -07:00 committed by GitHub
commit 04735fdc91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -422,6 +422,12 @@ impl Default for WorkerState {
} }
} }
impl Drop for ServerWorker {
fn drop(&mut self) {
Arbiter::current().stop();
}
}
impl Future for ServerWorker { impl Future for ServerWorker {
type Output = (); type Output = ();