Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ private void Restart()
// BeginInvoke a new operation.
_operation = _dispatcher.BeginInvoke(
DispatcherPriority.Inactive,
new DispatcherOperationCallback(FireTick),
null);
(DispatcherOperationCallback)(state => ((DispatcherTimer)state).FireTick()),
this);


_dueTimeInTicks = Environment.TickCount + (int) _interval.TotalMilliseconds;
Expand Down Expand Up @@ -297,7 +297,7 @@ internal void Promote() // called from Dispatcher
}
}

private object FireTick(object unused)
private object FireTick()
{
// The operation has been invoked, so forget about it.
_operation = null;
Expand Down