fic async deadlock in platform control

This commit is contained in:
Luke D. Jones
2023-12-08 20:04:28 +13:00
parent 694a644cc6
commit 7b2125cbdf
2 changed files with 578 additions and 364 deletions

939
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -579,11 +579,10 @@ impl CtrlTask for CtrlPlatform {
let platform1 = platform1.clone();
async move {
info!("RogPlatform reloading panel_od");
let lock = platform1.config.lock().await;
if !sleeping && platform1.platform.has_panel_od() {
platform1
.platform
.set_panel_od(lock.panel_od)
.set_panel_od(platform1.config.lock().await.panel_od)
.map_err(|err| {
warn!("CtrlCharge: panel_od {}", err);
err