Fixed some small problems

This commit is contained in:
Bigsk 2020-11-07 22:32:32 +08:00
parent 040c929bdc
commit 9541bbfa15

View File

@ -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()