google / google/bumble

Ideal way to terminate gracefully

Open
#180 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
555
Forks
138
Avg merge
3d 15h
Merged PRs (30d)
9

Description

With the scripts running , what would be a graceful way to terminate and exit ?
Here is what i am doing -
1. Upon Keyboard Interrupt - disconnect device and then device.power_off().
Any thing else I may be missing. Didnt find a suitable example for the exit sequence yet , but any refrence to read up will help.

BTW irrespective of what reason i give for the disconnect device , the disconnect reason is always 22 .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.