Fixed some small problems
This commit is contained in:
parent
040c929bdc
commit
9541bbfa15
2
main.py
2
main.py
@ -133,6 +133,7 @@ class GMCLCore(object):
|
||||
except:
|
||||
return "Error:Wrong parameter for game memory."
|
||||
def Download(self,DownloadFrom,DownloadTo,ThreadNum=3):
|
||||
'''Multi-Thread download function'''
|
||||
if(DownloadFrom=="" or DownloadTo==""):
|
||||
return "Error:Wrong online address or local address for download."
|
||||
else:
|
||||
@ -159,6 +160,5 @@ class GMCLCore(object):
|
||||
t = MultiThreadDownload(url,start,end,fd,self.__UserAgent)
|
||||
t.start()
|
||||
mtd_list.append(t)
|
||||
|
||||
for i in mtd_list:
|
||||
i.join()
|
||||
|
Reference in New Issue
Block a user