Gamaliel Espinoza Macedo преди 6 години
родител
ревизия
9cea3c603a
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      ondemand/service.py

+ 1 - 0
ondemand/service.py

@@ -117,6 +117,7 @@ def process_queue_with_threads():
                 try:
                     item = queue.get(False)
                     thread = Thread(target=process_segment, args=(item,))
+                    threads[index] = thread
                     thread.start()
                 except Empty:
                     is_drained = True