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
--- a/mercurial/sshpeer.py Mon Jan 11 13:33:00 2021 +0100
+++ b/mercurial/sshpeer.py Mon Feb 15 13:59:36 2021 -0500
@@ -434,7 +434,7 @@
return True
def close(self):
- pass
+ self._cleanup()
# End of ipeerconnection interface.