Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshpeer.py @ 46710:fa30292b680b
sshpeer: don't fail forwarding output from closed connections
The test still shows an internal error, but one that happens
further along.
Differential Revision: https://phab.mercurial-scm.org/D10073
author | Valentin Gatien-Baron <vgatien-baron@janestreet.com> |
---|---|
date | Thu, 25 Feb 2021 10:00:08 -0500 |
parents | a4c19a162615 |
children | d4ba4d51f85f |
line wrap: on
line diff
--- a/mercurial/sshpeer.py Thu Feb 25 09:59:23 2021 -0500 +++ b/mercurial/sshpeer.py Thu Feb 25 10:00:08 2021 -0500 @@ -40,7 +40,7 @@ """display all data currently available on pipe as remote output. This is non blocking.""" - if pipe: + if pipe and not pipe.closed: s = procutil.readpipe(pipe) if s: display = ui.warn if warn else ui.status