diff --git a/gunicorn/workers/gtornado.py b/gunicorn/workers/gtornado.py index 2383c0d3..02ddfa3f 100644 --- a/gunicorn/workers/gtornado.py +++ b/gunicorn/workers/gtornado.py @@ -110,7 +110,8 @@ class TornadoWorker(Worker): if not isinstance(app, tornado.web.Application) or \ isinstance(app, tornado.wsgi.WSGIApplication): app = WSGIContainer(app) - elif not isinstance(app, WSGIContainer): + elif not isinstance(app, WSGIContainer) and \ + not isinstance(app, tornado.web.Application): app = WSGIContainer(app) # Monkey-patching HTTPConnection.finish to count the