Skip to content

Commit 719020b

Browse files
committed
don't allow polls to the unmount to turn true until other callbacks have been allowed
1 parent 3bdf157 commit 719020b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/pddb/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,13 +680,13 @@ fn wrapped_main() -> ! {
680680
},
681681
PasswordState::Uninit => {
682682
if try_mount_or_format(&modals, &mut pddb_os, &mut basis_cache, PasswordState::Uninit, time_resetter) {
683-
is_mounted.store(true, Ordering::SeqCst);
684683
for requester in mount_notifications.drain(..) {
685684
xous::return_scalar2(requester, 0, 0).expect("couldn't return scalar");
686685
}
687686
assert!(mount_notifications.len() == 0, "apparently I don't understand what drain() does");
688687
log::info!("{}PDDB.MOUNTED,{}", xous::BOOKEND_START, xous::BOOKEND_END);
689688
xous::return_scalar2(msg.sender, 0, 0).expect("couldn't return scalar");
689+
is_mounted.store(true, Ordering::SeqCst);
690690
} else {
691691
xous::return_scalar2(msg.sender, 1, 0).expect("couldn't return scalar");
692692
}

0 commit comments

Comments
 (0)