RemoveClockEntry -> TryRemoveClockEntry

This commit is contained in:
Wei Tang 2022-10-29 10:47:47 +02:00
parent fd739c2177
commit 38286d8623
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ namespace Antmicro.Renode.Peripherals.I2C.Betrusted
private void FinishTransaction()
{
// this.Log(LogLevel.Error, "I2C: Removing clock entry for {0}",this.irqTimeoutCallback);
machine.ClockSource.RemoveClockEntry(FinishTransaction);
machine.ClockSource.TryRemoveClockEntry(FinishTransaction);
irqTimeoutCallbackQueued = 0;
if (shouldSendTxRxIrq)
{

View file

@ -162,7 +162,7 @@ namespace Antmicro.Renode.Peripherals.I2C.Betrusted
private void FinishTransaction()
{
machine.ClockSource.RemoveClockEntry(FinishTransaction);
machine.ClockSource.TryRemoveClockEntry(FinishTransaction);
if (shouldSendTxRxIrq)
{
shouldSendTxRxIrq = false;