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

Skip to content
Commit 6429a73a authored by Yun-Hao Chung's avatar Yun-Hao Chung Committed by Yun-hao Chung
Browse files

Floss: Explicitly use topstack runtime to spawn cleanup tasks

It is observed that in handling SIGTERM, the tokio::spawn could panic
because of no Tokio runtime at the time.

This explicitly uses topstack runtime to avoid the panic.

Bug: 359055353
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: rmmod btusb & modprobe multiple times to ensure no crash
Flag: EXEMPT, Floss-only changes
Change-Id: I7acd03030c49b46f7873c0fb6358490d13a032d1
parent b713c243
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment