From 5d8b66bf3391a932f6ddf50fcea9ad02599ca467 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 14 Nov 2012 13:43:27 -0500 Subject: [PATCH] run-dev: Don't leak servers when we fail to bind to the proxy port (imported from commit da7cd1f62f3d073bdae6fe72e71f4127931f4d57) --- tools/run-dev.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/run-dev.py b/tools/run-dev.py index c8374ee458..a172d52ec6 100755 --- a/tools/run-dev.py +++ b/tools/run-dev.py @@ -58,9 +58,8 @@ class Resource(resource.Resource): return proxy.ReverseProxyResource('localhost', django_port, '/'+name) -reactor.listenTCP(proxy_port, server.Site(Resource()), interface='127.0.0.1') - try: + reactor.listenTCP(proxy_port, server.Site(Resource()), interface='127.0.0.1') reactor.run() finally: # Kill everything in our process group.