diff options
Diffstat (limited to 'src/indieauth.rs')
-rw-r--r-- | src/indieauth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indieauth.rs b/src/indieauth.rs index f6bac04..7a2a07e 100644 --- a/src/indieauth.rs +++ b/src/indieauth.rs @@ -126,7 +126,7 @@ impl Drop for IndieAuthMiddleware { // Because apparently you can't run async code from Drop... // This should drop the last reference for the [`cache`], // allowing it to be dropped. - async_std::task::spawn(async move { task.cancel() }); + async_std::task::spawn(async move { task.cancel().await }); } } #[async_trait] |