8000 Tweak block_till_done by balloob · Pull Request #4245 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tweak block_till_done #4245

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

Merged
merged 1 commit into from
Nov 6, 2016
Merged

Tweak block_till_done #4245

merged 1 commit into from
Nov 6, 2016

Conversation

balloob
Copy link
Member
@balloob balloob commented Nov 6, 2016

Every time you refer to a weakmap it will remove all entries that no longer exist. In our block_till_done method we referred to it twice and it could happen that the map became empty between the time that we checked the length and it got passed into asyncio.wait, causing asyncio.wait to raise an error.

@balloob balloob added the async label Nov 6, 2016
@mention-bot
Copy link

@balloob, thanks for your PR! By analyzing the history of the files in this pull request, we identified @pvizeli, @fabianhjr and @jaharkes to be potential reviewers.

8000

@pvizeli
Copy link
Member
pvizeli commented Nov 6, 2016

Yeah I also see that on travis.

@balloob balloob merged commit 98f41d6 into dev Nov 6, 2016
@balloob balloob deleted the async-fix branch November 6, 2016 16:43
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0