sshpeer: make sshpeer.close() close the underlying connection
authorValentin Gatien-Baron <valentin.gatienbaron@gmail.com>
Mon, 15 Feb 2021 13:59:36 -0500
changeset 46659 8c4906105f37
parent 46658 fa21633af201
child 46660 0738bc25d6ac
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
mercurial/sshpeer.py
--- 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.