Skip to content

Commit

Permalink
Update lib/web_ui/lib/src/engine/skwasm/skwasm_impl/surface.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Mouad Debbar <mdebbar@google.com>
  • Loading branch information
eyebrowsoffire and mdebbar committed Apr 4, 2023
1 parent c2ca50c commit 64d5728
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/web_ui/lib/src/engine/skwasm/skwasm_impl/surface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ class SkwasmSurface {

void _onRender(JSNumber jsRenderId) {
final int renderId = jsRenderId.toDart.toInt();
final Completer<void> completer = _pendingCallbacks[renderId]!;
final Completer<void> completer = _pendingCallbacks.remove(renderId)!;
completer.complete();
_pendingCallbacks.remove(renderId);
}

void dispose() {
Expand Down

0 comments on commit 64d5728

Please sign in to comment.