Skip to content

Commit

Permalink
Inverted if
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehonti committed Sep 21, 2024
1 parent c577645 commit b70aa16
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Pinta.Core/Classes/AsyncEffectRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,11 @@ void RenderTile (int renderId, int threadId, int tileIndex)
}
}

if (exception != null) {
lock (render_exceptions) {
render_exceptions.Add (exception);
}
if (exception == null)
return;

lock (render_exceptions) {
render_exceptions.Add (exception);
}
}

Expand Down

0 comments on commit b70aa16

Please sign in to comment.