Explorar el Código

Reptition problems

Gamaliel Espinoza Macedo hace 6 años
padre
commit
9cea3c603a
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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