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

backends/winrt/client: fix crash in max_pdu_size_changed_handler #1001

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

dlech
Copy link
Collaborator

@dlech dlech commented Sep 12, 2022

It is possible that self._session is set to None when max_pdu_size_changed_handler is called. So we can use the sender arg instead to avoid a possible AttributeError.

Fixes #998.

It is possible that self._session is set to None when
max_pdu_size_changed_handler is called. So we can use the sender arg
instead to avoid a possible AttributeError.

Fixes #998.
@dlech dlech merged commit 21e72cb into develop Sep 12, 2022
@dlech dlech deleted the winrt-fix-mtu-event branch September 12, 2022 15:46
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.

AttributeError: 'NoneType' object has no attribute 'max_pdu_size'
1 participant