mirror of
https://opendev.org/x/pyghmi
synced 2026-04-02 00:03:30 +00:00
Set daemon for IO thread
The IO thread is meant to be a background task. Mark it as such to be treated properly on interpreter exit. Change-Id: I73003625d014f823d26c55bdd22217e19f6bf1c9
This commit is contained in:
@@ -391,6 +391,7 @@ class Session(object):
|
||||
iothreadwaiters.append(initevt)
|
||||
_IOWorker = define_worker()
|
||||
iothread = _IOWorker()
|
||||
iothread.daemon = True
|
||||
iothread.start()
|
||||
initevt.wait()
|
||||
elif not iothreadready:
|
||||
|
||||
Reference in New Issue
Block a user