Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was an error where when recording where the recording would not stop and files kept growing even though licode gave no error. What I found is that the promise that removed the ExternalOutput was always pending and never resolved and the callback was never executed but, the recording would stop on most occasions. After removing the lines shown in the PR the callback is always called and the recording stops all the times I tested it.
To check this you check that the log inside the callback in the removeExternalOutput() function on line 115 of erizo_controller/erizoJS/models/Publisher.js is never reached.
I don´t know the root issue of this problem, and my manual testing is limited so this might cause other issues with removing that check. I will leave this PR as a draft, as a point of discussion and potential fix until a better solution is found or further testing is done.
[] It needs and includes Unit Tests
Changes in Client or Server public APIs
[] It includes documentation for these changes in
/doc
.