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 not specifying autoReconnectOnUnexpectedDisconnect issue. #534

Conversation

EricLin-BBpos
Copy link
Collaborator

@EricLin-BBpos EricLin-BBpos commented Aug 28, 2023

Summary

Fix #532

Fix issue that Calling connectBlueToothReader without autoReconnectOnUnexpectedDisconnect will case execption.

Motivation

Fix #532

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

Comment on lines 227 to 229
params.getBoolean("autoReconnectOnUnexpectedDisconnect") ?: false
if (params.hasKey("autoReconnectOnUnexpectedDisconnect")) {
params.getBoolean("autoReconnectOnUnexpectedDisconnect")
} else false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is an existing getBoolean mapper to deal with this, can we use that?

@nazli-stripe nazli-stripe merged commit 0a7770d into stripe:main Aug 29, 2023
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.

Not specifying autoReconnectOnUnexpectedDisconnect crashes the SDK
2 participants