Skip to content

Commit

Permalink
RemoveClockEntry -> TryRemoveClockEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Oct 29, 2022
1 parent fd739c2 commit 38286d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emulation/peripherals/BetrustedEcI2C.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion emulation/peripherals/BetrustedSocI2C.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 38286d8

Please sign in to comment.