From 38286d862385ce070a86fe0835f00693006fe4b1 Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Sat, 29 Oct 2022 10:47:47 +0200 Subject: [PATCH] RemoveClockEntry -> TryRemoveClockEntry --- emulation/peripherals/BetrustedEcI2C.cs | 2 +- emulation/peripherals/BetrustedSocI2C.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emulation/peripherals/BetrustedEcI2C.cs b/emulation/peripherals/BetrustedEcI2C.cs index 2862b3a37..c3e719c1b 100644 --- a/emulation/peripherals/BetrustedEcI2C.cs +++ b/emulation/peripherals/BetrustedEcI2C.cs @@ -171,7 +171,7 @@ public BetrustedEcI2C(Machine machine) : base(machine) 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) { diff --git a/emulation/peripherals/BetrustedSocI2C.cs b/emulation/peripherals/BetrustedSocI2C.cs index a471d174e..8d46e887f 100644 --- a/emulation/peripherals/BetrustedSocI2C.cs +++ b/emulation/peripherals/BetrustedSocI2C.cs @@ -162,7 +162,7 @@ public BetrustedSocI2C(Machine machine) : base(machine) private void FinishTransaction() { - machine.ClockSource.RemoveClockEntry(FinishTransaction); + machine.ClockSource.TryRemoveClockEntry(FinishTransaction); if (shouldSendTxRxIrq) { shouldSendTxRxIrq = false;