Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 648f187b authored by Mike Yu's avatar Mike Yu
Browse files

Test: Await worker_thread before drop it

Call .await to ensure the task is cancelled before we drop it.
This change is hopefully to fix a bug that the aborted task is
still running.

Bug: 235763745
Test: atest
Change-Id: Id2982211055661c5a74bcce7332f694f4782438b
parent 1a38055c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -143,6 +143,9 @@ impl DohFrontend {
            }

            worker_thread.abort();
            RUNTIME_STATIC.block_on(async {
                debug!("worker_thread result: {:?}", worker_thread.await);
            })
        }

        debug!("DohFrontend: stopped: {:?}", self);