reflect unmount status after tryunmount

this fixes a problem where backups fail when autobacklight is
enabled, because autobacklight is constantly querying the PDDB
for the length of the autobacklight timeout, even after the
PDDB is unmounted.
This commit is contained in:
bunnie 2022-12-02 20:10:10 +08:00
parent 6f5d37866c
commit 52955681d5

View file

@ -1848,6 +1848,7 @@ fn wrapped_main() -> ! {
// finally, unmount the system basis
basis_cache.basis_unmount(&mut pddb_os, PDDB_DEFAULT_SYSTEM_BASIS).expect("can't unmount system basis");
if basis_cache.basis_list().len() == 0 {
is_mounted.store(false, Ordering::SeqCst);
log::info!(".System basis is unmounted.");
xous::return_scalar(msg.sender, 1).unwrap();
} else {