diff options
Diffstat (limited to 'waitress/task.py')
-rw-r--r-- | waitress/task.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/waitress/task.py b/waitress/task.py index 315a9c2..15aa771 100644 --- a/waitress/task.py +++ b/waitress/task.py @@ -122,11 +122,6 @@ class ThreadedTaskDispatcher(object): self.queue_lock.notify(to_stop) def add_task(self, task): - try: - task.defer() - except: - task.cancel() - raise with self.queue_lock: self.queue.append(task) self.queue_lock.notify() @@ -203,12 +198,6 @@ class Task(object): self.status.startswith('304') ) - def cancel(self): - self.close_on_finish = True - - def defer(self): - pass - def build_response_header(self): version = self.version # Figure out whether the connection should be closed. |