mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	run-dev: Don't leak servers when we fail to bind to the proxy port
(imported from commit da7cd1f62f3d073bdae6fe72e71f4127931f4d57)
This commit is contained in:
		@@ -58,9 +58,8 @@ class Resource(resource.Resource):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        return proxy.ReverseProxyResource('localhost', django_port, '/'+name)
 | 
					        return proxy.ReverseProxyResource('localhost', django_port, '/'+name)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
reactor.listenTCP(proxy_port, server.Site(Resource()), interface='127.0.0.1')
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
try:
 | 
					try:
 | 
				
			||||||
 | 
					    reactor.listenTCP(proxy_port, server.Site(Resource()), interface='127.0.0.1')
 | 
				
			||||||
    reactor.run()
 | 
					    reactor.run()
 | 
				
			||||||
finally:
 | 
					finally:
 | 
				
			||||||
    # Kill everything in our process group.
 | 
					    # Kill everything in our process group.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user