diff --git a/gunicorn/workers/gthread.py b/gunicorn/workers/gthread.py index fb37fd3f..dbbb7c3a 100644 --- a/gunicorn/workers/gthread.py +++ b/gunicorn/workers/gthread.py @@ -180,6 +180,9 @@ class ThreadWorker(base.Worker): except KeyError: # already removed by the system, continue pass + except ValueError: + # already removed by the system continue + pass # close the socket conn.close()