Skip to content

Commit

Permalink
better threading?
Browse files Browse the repository at this point in the history
  • Loading branch information
K97i committed Apr 18, 2023
1 parent a3c1854 commit bb89b31
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions download.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import multiprocessing
import threading
import requests
import json
import os
Expand All @@ -8,8 +8,6 @@ def compile_list():
x=0
array = []

print(mc_framework, mc_version)

with open('modlist.txt', 'r') as file:
searchlist = file.readlines()

Expand Down Expand Up @@ -100,9 +98,6 @@ def download(item, mc_framework, mc_version):

print("Please wait!")

threads = []

for item in list:
thread = multiprocessing.Process(target=download, args=(item, mc_framework, mc_version,))
threads.append(threads)
thread.start()
x = threading.Thread(target=download, args=(item, mc_framework, mc_version))
x.start()

0 comments on commit bb89b31

Please sign in to comment.