Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PAN-2624] Start listening for p2p connections after start() is invoked #1418

Conversation

mbaxter
Copy link
Contributor

@mbaxter mbaxter commented May 8, 2019

PR description

Start listening for incoming p2p connections only after start() is invoked. Additionally, since we're no longer setting up listening in the constructor, we can now gate the stop() method so that it only runs after the network has been started.


/** Start listening for incoming connections */
private void startListening() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This diff has ended up looking pretty confusing. I'm just moving this listening logic out of the constructor and into a separate method. I also did some reordering of the constructor logic so that it reads better.

@mbaxter mbaxter marked this pull request as ready for review May 8, 2019 15:47
@mbaxter mbaxter merged commit 13ab01b into PegaSysEng:master May 8, 2019
notlesh pushed a commit to notlesh/pantheon that referenced this pull request May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants