Skip to content

Commit

Permalink
server: remove all pending conn reqs within DisconnectPeer
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Mar 31, 2018
1 parent 4898201 commit 9b72965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,7 @@ func (s *server) DisconnectPeer(pubKey *btcec.PublicKey) error {

srvrLog.Infof("Disconnecting from %v", peer)

//s.cancelConnReqs(pubStr, nil)
s.cancelConnReqs(pubStr, nil)

// If this peer was formerly a persistent connection, then we'll remove
// them from this map so we don't attempt to re-connect after we
Expand Down

0 comments on commit 9b72965

Please sign in to comment.