Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing crashing bug with reset callback after closed #50

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

Attempt3035
Copy link
Contributor

There's a scenario with this plugin's use inside flutterflow where if you have a stop / reset command callback on timer end, and the widget has disposed already before the callback a main thread crash occurs with the following trace:

broadcast_stream_controller.dart - Line 243
BroadcastStreamController.add (#3) + 243

subject.dart - Line 151
Subject._add + 151

subject.dart - Line 141
Subject.add (#3) + 141

stop_watch_timer.dart - Line 406
StopWatchTimer._reset + 406

stop_watch_timer.dart - Line 270
FlutterFlowTimerController.onResetTimer + 270

Copy link
Owner

@hukusuke1007 hukusuke1007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hukusuke1007 hukusuke1007 merged commit 7a323d5 into hukusuke1007:master Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants