[Updated] D9995: sshpeer: make sshpeer.close() close the underlying connection

valentin.gatienbaron (Valentin Gatien-Baron) phabricator at mercurial-scm.org
Mon Mar 8 20:27:57 UTC 2021


Closed by commit rHG309e6729e435: sshpeer: make sshpeer.close() close the underlying connection (authored by valentin.gatienbaron).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D9995?vs=25631&id=26149

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D9995/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D9995

AFFECTED FILES
  mercurial/sshpeer.py

CHANGE DETAILS

diff --git a/mercurial/sshpeer.py b/mercurial/sshpeer.py
--- a/mercurial/sshpeer.py
+++ b/mercurial/sshpeer.py
@@ -434,7 +434,7 @@
         return True
 
     def close(self):
-        pass
+        self._cleanup()
 
     # End of ipeerconnection interface.
 



To: valentin.gatienbaron, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210308/535f1b4b/attachment.html>


More information about the Mercurial-patches mailing list