mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
run_dev: Fix return for twisted finish function.
This was flagged by mypy; it's not clear this should be needed.
This commit is contained in:
@@ -14,9 +14,8 @@ from twisted.web import proxy, server, resource
|
||||
from twisted.web.http import Request
|
||||
orig_finish = Request.finish
|
||||
def patched_finish(self):
|
||||
if self._disconnected:
|
||||
return
|
||||
return orig_finish(self)
|
||||
if not self._disconnected:
|
||||
orig_finish(self)
|
||||
Request.finish = patched_finish
|
||||
|
||||
if 'posix' in os.name and os.geteuid() == 0:
|
||||
|
||||
Reference in New Issue
Block a user