Skip to content

Commit 38286d8

Browse files
committed
RemoveClockEntry -> TryRemoveClockEntry
1 parent fd739c2 commit 38286d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

emulation/peripherals/BetrustedEcI2C.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public BetrustedEcI2C(Machine machine) : base(machine)
171171
private void FinishTransaction()
172172
{
173173
// this.Log(LogLevel.Error, "I2C: Removing clock entry for {0}",this.irqTimeoutCallback);
174-
machine.ClockSource.RemoveClockEntry(FinishTransaction);
174+
machine.ClockSource.TryRemoveClockEntry(FinishTransaction);
175175
irqTimeoutCallbackQueued = 0;
176176
if (shouldSendTxRxIrq)
177177
{

emulation/peripherals/BetrustedSocI2C.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public BetrustedSocI2C(Machine machine) : base(machine)
162162

163163
private void FinishTransaction()
164164
{
165-
machine.ClockSource.RemoveClockEntry(FinishTransaction);
165+
machine.ClockSource.TryRemoveClockEntry(FinishTransaction);
166166
if (shouldSendTxRxIrq)
167167
{
168168
shouldSendTxRxIrq = false;

0 commit comments

Comments
 (0)