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 "Could not start recording within 5 seconds" bug #21

Closed

Conversation

probablycorey
Copy link

I was running into what I think was a race condition with starting the recorder. Sometimes this.waitForEvent('onStart') wasn't returning in time and the timeout was causes the recorder to stop. But when I looked Aperture was recording the file.

I think this was because it was calling this.waitForEvent('onStart'). Once when this.isFileReady was being created and again at the bottom of the startRecording method. I was able to fix this problem by relying on isFileReady instead of this.waitForEvent('onStart'). This avoids shelling out again and still will handle the problem of a recording not starting within 5 seconds.

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

1 participant