Browse Source

Fixed possible NullReferenceException in DefaultRenderLoop.

pull/1530/head
José Pedro 9 years ago
parent
commit
c1d6fe6686
No known key found for this signature in database GPG Key ID: B8247B9301707B83
  1. 4
      src/Avalonia.Visuals/Rendering/DefaultRenderLoop.cs

4
src/Avalonia.Visuals/Rendering/DefaultRenderLoop.cs

@ -41,12 +41,12 @@ namespace Avalonia.Rendering
{ {
add add
{ {
_tick += value;
if (_subscriberCount++ == 0) if (_subscriberCount++ == 0)
{ {
Start(); Start();
} }
_tick += value;
} }
remove remove

Loading…
Cancel
Save