changeset 46698:8c4906105f37

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
author Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
date Mon, 15 Feb 2021 13:59:36 -0500
parents fa21633af201
children 0738bc25d6ac
files mercurial/sshpeer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.