Skip to content

Avoid attribute error in __del__ of _ChannelCallState#23176

Merged
lidizheng merged 1 commit intogrpc:masterfrom
lidizheng:fix-del
Jun 11, 2020
Merged

Avoid attribute error in __del__ of _ChannelCallState#23176
lidizheng merged 1 commit intogrpc:masterfrom
lidizheng:fix-del

Conversation

@lidizheng
Copy link
Copy Markdown
Contributor

@lidizheng lidizheng commented Jun 10, 2020

This PR fixes a reported crash that in the the __del__ of _ChannelCallState, the self.channel attribute becomes None, and caused AttributeError.

During the deallocation, Channel is deallocated before _ChannelCallState, which caused this issue.

@lidizheng lidizheng added lang/Python release notes: yes Indicates if PR needs to be in release notes labels Jun 10, 2020
@lidizheng lidizheng requested a review from gnossen June 10, 2020 17:04
@lidizheng lidizheng marked this pull request as ready for review June 10, 2020 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/Python release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants