Skip to content

Commit

Permalink
setDaemon
Browse files Browse the repository at this point in the history
  • Loading branch information
testerSunshine committed Dec 26, 2018
1 parent cf2e8f8 commit dda809d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions init/select_ticket_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def cdn_certification(self):
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()
Expand Down
1 change: 1 addition & 0 deletions inter/Query.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def sendQuery(self):
: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"])
Expand Down

0 comments on commit dda809d

Please sign in to comment.