Explorar el Código

Target parameter fixed

Gamaliel Espinoza Macedo hace 6 años
padre
commit
1351bd731a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ondemand/service.py

+ 1 - 1
ondemand/service.py

@@ -116,7 +116,7 @@ def process_queue_with_threads():
             if not t:
                 try:
                     item = queue.get(False)
-                    thread = Thread(process_segment, args=(item,))
+                    thread = Thread(target=process_segment, args=(item,))
                     thread.start()
                 except Empty:
                     is_drained = True