# HG changeset patch # User Valentin Gatien-Baron # Date 2021-02-15 18:59:36 # Node ID 8c4906105f37033dbd57340363ce09fef05572ed # Parent fa21633af20198d9006ced9a0eae063af08df165 sshpeer: make sshpeer.close() close the underlying connection So the connection can be closed eagerly in future commits, instead of relying on __del__. Differential Revision: https://phab.mercurial-scm.org/D9995 diff --git a/mercurial/sshpeer.py b/mercurial/sshpeer.py --- a/mercurial/sshpeer.py +++ b/mercurial/sshpeer.py @@ -434,7 +434,7 @@ class sshv1peer(wireprotov1peer.wirepeer return True def close(self): - pass + self._cleanup() # End of ipeerconnection interface.