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

Fix StackOverFlow exception when stop action is called within the tick event #8127

Merged
merged 3 commits into from Feb 15, 2023

Conversation

Florian14
Copy link
Contributor

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Verify if the timer is still running before calling the stop or pause action and triggering a new tick event

Motivation and context

Fix a regression introduced by #8058

Screenshots / GIFs

Tests

  • Record a voice message
  • Listen to the voice message until the end
  • The timer should be correctly stopped and reset, the app should not freeze anymore

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@sonarcloud
Copy link

sonarcloud bot commented Feb 14, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Thanks. After discussion IRL, I think stop() and pause() should not invoke the tick listener. The caller could call elapsedTime() before invoking stop() or pause(). We may consider to do this change later (in EAx?).

Anyway I will merge and test on the hotfix branch and this will hopefully unblock the release.

@bmarty bmarty merged commit afe133e into hotfix/1.5.25 Feb 15, 2023
@bmarty bmarty deleted the bugfix/fre/fix_countuptimer_stackoverflow branch February 15, 2023 08:30
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.

None yet

2 participants