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 BluetoothMedic crash when started on non-looper thread. #981

Merged
merged 2 commits into from
Jun 11, 2020

Conversation

davidgyoung
Copy link
Member

@davidgyoung davidgyoung commented Jun 11, 2020

Fixes #980

Reproduced the problem by adding these lines to onCreate() of BeaconReferenceApplication:

        Thread t = new Thread() {
          public void run() {
              try {
                  BluetoothMedic.getInstance();
              }
              catch (Exception e) {
                  Log.e(TAG, "Crash!", e);
                  System.exit(1);
              }
          }
        };
        t.start();

Before this fix, that crashed. After this fix, it did not.

@davidgyoung davidgyoung merged commit 77ed36b into master Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BluetoothMedic Crashes without Looper
1 participant