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:
@@ -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(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user