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 notify/indicate observable termination #232

Merged

Conversation

dariuszseweryn
Copy link
Owner

Related to #231
Until now the Observable<byte[]> emitted from RxBleConnection.setupNotification()/RxBleConnection.setupIndication() did not complete when the RxBleConnection.setupNotification()/RxBleConnection.setupIndication() was unsubscribed and notification/indication was teardown. Additionally the Observable<byte[]> did not propagate errors when the RxBleConnection has disconnected. This behaviour is fixed with this Pull Request.

@dariuszseweryn dariuszseweryn added the bug Bug that is caused by the library label Jun 23, 2017
@dariuszseweryn dariuszseweryn added this to the 1.3.2 milestone Jun 23, 2017
@dariuszseweryn dariuszseweryn requested a review from uKL June 23, 2017 14:50
@dariuszseweryn dariuszseweryn changed the title Notify/indicate observable completes and propagates error Fix notify/indicate observable termination Jun 23, 2017
@@ -349,6 +353,46 @@ class NotificationAndIndicationManagerTest extends RoboSpecification {
].combinations()
}

@Unroll
def "should complete the emitted Observable<byte> when un-subscribed"() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

- is not required here.

@dariuszseweryn dariuszseweryn merged commit 94498a0 into master Jun 26, 2017
@dariuszseweryn dariuszseweryn deleted the fix/issue_231_notification_observable_does_not_terminate branch June 26, 2017 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is caused by the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants