Skip to content

Commit

Permalink
Fix the problem that the processing interface does not exit when th…
Browse files Browse the repository at this point in the history
…e main thread crash.
  • Loading branch information
nepeplwu committed Apr 12, 2021
1 parent 32023f7 commit b0b3144
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paddlehub/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def _printer():
index += 1

t = threading.Thread(target=_printer)
t.daemon = True
t.start()
yield
end = True
Expand Down

0 comments on commit b0b3144

Please # to comment.