Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
gh-109564: AddNone
check forasyncio.Server._wakeup
#126660
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
a555aa0
6dcee6b
a5de93e
a8d77f2
2eb9556
d963237
29c3232
001c286
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -303,6 +303,8 @@ def _detach(self, transport): | ||
self._wakeup() | ||
def _wakeup(self): | ||
if self._waiters is None: | ||
Contributor
| ||
return | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Please add a detailed comment on how a double call can happen (sort of a shorter version of your main PR message) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Addressed ind963237 | ||
waiters = self._waiters | ||
self._waiters = None | ||
for waiter in waiters: | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add ``None`` check for :meth:`asyncio.Server._wakeup`. Patch by Jamie Phan. |
Uh oh!
There was an error while loading.Please reload this page.