Skip to content

Commit

Permalink
mitigate minor race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepighetti committed Sep 14, 2019
1 parent 78c8bc2 commit 84535f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flare_flutter/lib/flare_spammer_actor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class _FlareSpammerRenderObject extends FlareRenderBox {
@override
void onUnload() {
_repaintAnimations.clear();
controller.removeListener(fireHeart);
controller?.removeListener(fireHeart);
}

String get filename => _filename;
Expand Down

0 comments on commit 84535f2

Please sign in to comment.