From 6c333161a471a7527cad2c3169b47157785654ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=97=E9=B9=8F?= Date: Mon, 15 Dec 2025 09:42:55 +0800 Subject: [PATCH] [BugFix]Remove duplicate code (#309) Signed-off-by: princepride --- vllm_omni/core/sched/omni_generation_scheduler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vllm_omni/core/sched/omni_generation_scheduler.py b/vllm_omni/core/sched/omni_generation_scheduler.py index 59f954a8a..0916487ab 100644 --- a/vllm_omni/core/sched/omni_generation_scheduler.py +++ b/vllm_omni/core/sched/omni_generation_scheduler.py @@ -275,8 +275,7 @@ class OmniGenerationScheduler(VLLMScheduler): # Remove the stopped requests from the running and waiting queues. if stopped_running_reqs: - if stopped_running_reqs: - self.running = remove_all(self.running, stopped_running_reqs) + self.running = remove_all(self.running, stopped_running_reqs) if stopped_preempted_reqs: # This is a rare case and unlikely to impact performance. self.waiting.remove_requests(stopped_preempted_reqs)