diff --git a/init/select_ticket_info.py b/init/select_ticket_info.py index accde55..5317a0e 100755 --- a/init/select_ticket_info.py +++ b/init/select_ticket_info.py @@ -156,6 +156,7 @@ class select: print(u"开启cdn查询") print(u"本次待筛选cdn总数为{}, 筛选时间大约为5-10min".format(len(all_cdn))) t = threading.Thread(target=self.cdn_req, args=(all_cdn,)) + t.setDaemon(True) # t2 = threading.Thread(target=self.set_cdn, args=()) t.start() # t2.start() diff --git a/inter/Query.py b/inter/Query.py index db63d79..aa595c0 100644 --- a/inter/Query.py +++ b/inter/Query.py @@ -81,6 +81,7 @@ class query: :return: """ t1 = threading.Thread(target=self.set_cdn, args=()) + t1.setDaemon(True) t1.start() for station_date in self.station_dates: select_url = copy.copy(self.urls["select_url"])