cli command set now uses set_blocking, but this does not wait for the unix_con thread to send out the msg

This commit is contained in:
Sebastian Moser
2024-08-22 11:20:43 +02:00
parent 5a25fd7161
commit 39cf7f5ee3

View File

@@ -20,9 +20,7 @@ pub fn set(sub_matches: &ArgMatches) -> MizeResult<()> {
let value = sub_matches.get_one::<String>("value") let value = sub_matches.get_one::<String>("value")
.ok_or(MizeError::new().msg("No value Argument specified"))?; .ok_or(MizeError::new().msg("No value Argument specified"))?;
instance.set(id, value.into_item_data())?; instance.set_blocking(id, value.into_item_data())?;
instance.wait_for_updaater_thread()?;
Ok(()) Ok(())
} }