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:
Tim Abbott
2016-01-25 17:24:09 -08:00
parent 10f15a2d00
commit df4ab3c788

View File

@@ -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: