Skip to content

Fix deallocation issue on additionalErrorHandler completion when retry is called.#1563

Merged
designatednerd merged 1 commit intomainfrom
fix/lol-threads
Dec 8, 2020
Merged

Fix deallocation issue on additionalErrorHandler completion when retry is called.#1563
designatednerd merged 1 commit intomainfrom
fix/lol-threads

Conversation

@designatednerd
Copy link
Copy Markdown
Contributor

Looks like the fact that we're wrapping additionalErrorHandler's callback with a weak self was causing a failure when a retry was done from within additionalErrorHandler, because self, and in turn the callback queue it was holding onto, got deallocated.

This fix pulls out the callback queue to prevent a retain cycle but hang on to the queue so the completion closure can be properly executed.

@designatednerd
Copy link
Copy Markdown
Contributor Author

Addresses #1544.

@designatednerd designatednerd merged commit 69b11d8 into main Dec 8, 2020
@designatednerd designatednerd deleted the fix/lol-threads branch December 8, 2020 00:49
@designatednerd designatednerd added this to the Next Release milestone Dec 8, 2020
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.

1 participant