修改BUG:http请求过多导致服务器防火墙拒绝连接
This commit is contained in:
5
main.py
5
main.py
@@ -17,16 +17,12 @@ if __name__ == '__main__':
|
||||
pool = MySQLConnectionPool()
|
||||
Thread = FindThread(TargetImageHash, pool)
|
||||
Thread.start()
|
||||
os._exit(0)
|
||||
|
||||
elif type == 2:
|
||||
while baseArr <= TargetRange[1]:
|
||||
Thread = ByNetFindThread(TargetImageHash, baseArr)
|
||||
Thread.start()
|
||||
baseArr += 1
|
||||
sleep(1)
|
||||
os._exit(0)
|
||||
|
||||
|
||||
elif type == 3:
|
||||
pool = MySQLConnectionPool()
|
||||
@@ -34,4 +30,3 @@ if __name__ == '__main__':
|
||||
Thread = UploadThread(baseArr, pool)
|
||||
Thread.start()
|
||||
baseArr += 1
|
||||
os._exit(0)
|
||||
|
||||
Reference in New Issue
Block a user