Submitter | phabricator |
---|---|
Date | Feb. 1, 2018, 11:32 p.m. |
Message ID | <d930f1cb0c9280244d2916da02562eb4@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/27192/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py --- a/mercurial/wireprotoserver.py +++ b/mercurial/wireprotoserver.py @@ -250,7 +250,6 @@ def __init__(self, ui, repo): self.ui = ui self.repo = repo - self.lock = None self.fin = ui.fin self.fout = ui.fout self.name = 'ssh' @@ -321,12 +320,8 @@ self.fout.flush() def serve_forever(self): - try: - while self.serve_one(): - pass - finally: - if self.lock is not None: - self.lock.release() + while self.serve_one(): + pass sys.exit(0) handlers = {