Skip to content

Commit b0b3144

Browse files
committed
Fix the problem that the processing interface does not exit when the main thread crash.
1 parent 32023f7 commit b0b3144

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddlehub/utils/log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def _printer():
139139
index += 1
140140

141141
t = threading.Thread(target=_printer)
142+
t.daemon = True
142143
t.start()
143144
yield
144145
end = True

0 commit comments

Comments
 (0)