mirror of
https://github.com/adamaq01/mikado.git
synced 2024-11-24 06:30:09 +01:00
fix: prevent crashing on release if property hook was not enabled
This commit is contained in:
parent
ca59382377
commit
f1aab81c4f
@ -113,8 +113,10 @@ pub fn hook_release() -> Result<()> {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
crochet::disable!(property_destroy_hook)
|
||||
.map_err(|err| anyhow::anyhow!("Could not disable function detour: {:#}", err))?;
|
||||
if crochet::is_enabled!(property_destroy_hook) {
|
||||
crochet::disable!(property_destroy_hook)
|
||||
.map_err(|err| anyhow::anyhow!("Could not disable function detour: {:#}", err))?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user