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

Fix control+c quitting HASS #6974

Merged
merged 1 commit into from
Apr 7, 2017
Merged

Fix control+c quitting HASS #6974

merged 1 commit into from
Apr 7, 2017

Conversation

balloob
Copy link
Member

@balloob balloob commented Apr 7, 2017

Description:

When we hit control+C to exit HASS, we raise KeyboardInterrupted exception on the main thread. If we then use fire_coroutine_threadsafe, it will check the thread ID and raise a "Cannot be called from within event loop" error.

@balloob balloob added this to the 0.42 milestone Apr 7, 2017
@balloob balloob requested a review from pvizeli April 7, 2017 16:12
@balloobbot balloobbot added the core label Apr 7, 2017
@pvizeli pvizeli merged commit 64174f5 into dev Apr 7, 2017
@pvizeli
Copy link
Member

pvizeli commented Apr 7, 2017

Thanks for fixing it 👍

@balloob balloob deleted the fix-exitting-hass branch April 8, 2017 11:50
balloob added a commit that referenced this pull request Apr 8, 2017
@balloob
Copy link
Member Author

balloob commented Apr 8, 2017

Cherry-picked into the 0.42 branch

@fabaff fabaff mentioned this pull request Apr 8, 2017
@balloob balloob mentioned this pull request Apr 21, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants