Fix unmount logic

This commit is contained in:
Jeremy Soller
2019-07-18 20:24:52 -06:00
parent b0bb843a65
commit f5bcff90f8
+1 -1
View File
@@ -46,7 +46,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut chan_opt = Some(chan);
let mut shm_opt = Some(shm);
while chan_opt.is_some() && shm_opt.is_some() {
while chan_opt.is_some() || shm_opt.is_some() {
let mut event = Event::default();
event_file.read(&mut event)?;