Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Allow event callbacks to close Listeners #3

Merged
merged 1 commit into from
Apr 18, 2015
Merged

Conversation

lmars
Copy link

@lmars lmars commented Apr 18, 2015

This is so that the user can choose to stop the listener immediately on disconnection / connection attempt failure (rather than sleeping and trying to connect again).

This requires Close to call reconnectCond.Broadcast otherwise goroutines will block waiting for a connection which will never exist.

This is so that the user can choose to stop the listener immediately on
disconnection / connection attempt failure (rather than sleeping and
trying to connect again).

This requires Close to call reconnectCond.Broadcast otherwise goroutines
will block waiting for a connection which will never exist.

Signed-off-by: Lewis Marshall <lewis@lmars.net>
@titanous
Copy link

LGTM

lmars added a commit that referenced this pull request Apr 18, 2015
Allow event callbacks to close Listeners
@lmars lmars merged commit 1e8124c into master Apr 18, 2015
@lmars lmars deleted the listener-callback-close branch April 18, 2015 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants