Mercurial > public > mercurial-scm > hg
diff mercurial/wireprotoserver.py @ 45818:b7b8a1538161
httpservice: move sys.exit() out of serve_forever()
This is a simple refactoring to show the callers of the method, so
it's easier to reason about the impact of removing the `sys.exit()`
calls in subsequent patches.
Differential Revision: https://phab.mercurial-scm.org/D9270
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 03 Nov 2020 20:18:26 -0800 |
parents | 8ff1ecfadcd1 |
children | 71443f742886 |
line wrap: on
line diff
--- a/mercurial/wireprotoserver.py Mon Jun 22 22:47:43 2020 -0700 +++ b/mercurial/wireprotoserver.py Tue Nov 03 20:18:26 2020 -0800 @@ -8,7 +8,6 @@ import contextlib import struct -import sys import threading from .i18n import _ @@ -851,7 +850,6 @@ def serve_forever(self): self.serveuntil(threading.Event()) self._ui.restorefinout(self._fin, self._fout) - sys.exit(0) def serveuntil(self, ev): """Serve until a threading.Event is set."""