Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/sshpeer.py @ 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 | 89a2afe31e82 |
children | 0738bc25d6ac |
comparison
equal
deleted
inserted
replaced
46697:fa21633af201 | 46698:8c4906105f37 |
---|---|
432 | 432 |
433 def canpush(self): | 433 def canpush(self): |
434 return True | 434 return True |
435 | 435 |
436 def close(self): | 436 def close(self): |
437 pass | 437 self._cleanup() |
438 | 438 |
439 # End of ipeerconnection interface. | 439 # End of ipeerconnection interface. |
440 | 440 |
441 # Begin of ipeercommands interface. | 441 # Begin of ipeercommands interface. |
442 | 442 |