Skip to content

Commit

Permalink
Use actual infinite timeout instead of zero timeout (#14812)
Browse files Browse the repository at this point in the history
Zero means zero, not infinite
  • Loading branch information
kekekeks authored Mar 5, 2024
1 parent b9ec339 commit c6ef4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Base/Threading/Dispatcher.Invoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ internal void Send(SendOrPostCallback action, object? arg = null, DispatcherPrio
{
InvokeImpl(new SendOrPostCallbackDispatcherOperation(this, priority.Value, action, arg, true),
CancellationToken.None,
default);
TimeSpan.FromMilliseconds(-1));
}
}

Expand Down

0 comments on commit c6ef4de

Please sign in to comment.