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

[ADDED] Allow client to choose whether to execute callbacks on Close() #514

Merged
merged 2 commits into from
Oct 4, 2019

Conversation

aricart
Copy link
Member

@aricart aricart commented Aug 30, 2019

Added connection option NoCallbacksAfterClientClose which disables the invocation of callbacks if the client code directly calls Close(). In case of a library initiated close, callbacks will be
invoked as they currently are.

disables the invocation of callbacks if the client code directly calls
Close(). If case of a library initiated close, callbacks will be
invoked as they currently are.
@coveralls
Copy link

coveralls commented Aug 30, 2019

Coverage Status

Coverage increased (+0.2%) to 92.283% when pulling d2b2945 on close-notifications into b659a00 on master.

Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

Overall ok, would simplify/combine the 2 tests.

test/reconnect_test.go Outdated Show resolved Hide resolved
test/reconnect_test.go Outdated Show resolved Hide resolved
test/reconnect_test.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
go.sum Outdated Show resolved Hide resolved
test/reconnect_test.go Outdated Show resolved Hide resolved
@kozlovic kozlovic changed the title FIX #513 - Allow client to choose whether to execute callbacks on Close() [ADDED] Allow client to choose whether to execute callbacks on Close() Oct 4, 2019
@kozlovic kozlovic merged commit e16cf3a into master Oct 4, 2019
@kozlovic kozlovic deleted the close-notifications branch October 4, 2019 20:25
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.

3 participants