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

Terminate reconnect_loop process when client terminates #17

Merged
merged 1 commit into from
Sep 24, 2020

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Sep 22, 2020

Resolves wooga#124

@bjosv bjosv requested a review from zuiderkwast September 22, 2020 15:40
Copy link
Collaborator

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

Nice!

_ ->
reconnect_loop(Client, State)
receive
{'EXIT', _, Reason} -> exit(Reason)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here _ is Client, right? We could be explicit here to make it easier to understand the code. Or at least a comment about when/why this can happen.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good, done

@bjosv bjosv force-pushed the reconnect_loop_correction branch from e66c776 to d0ee41c Compare September 23, 2020 13:05
@bjosv bjosv merged commit 4d3866a into Nordix:nordix-dev Sep 24, 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.

Spawned reconnect_loop process is not terminated when the client is terminated
2 participants