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

Replace the use of a disconnect listener with EthPeer.isDisconnected #1197

Merged
merged 4 commits into from
Apr 1, 2019

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented Apr 1, 2019

PR description

SyncTargetManager was manually tracking whether the sync target had disconnected by adding a listener and storing that in a flag. We can just use EthPeer.isDisconnected to check if the peer has disconnected when required and avoid the need to manage the disconnect listener.

@ajsutton ajsutton merged commit d1b9f2c into PegaSysEng:master Apr 1, 2019
@ajsutton ajsutton deleted the remove-disconnect-listener branch April 1, 2019 20:19
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