Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 12aad52

Browse files
authored
Move PingAlive thread to deamon to allow process exit when other processing thread are terminated (#1958)
* Move Pingalive thread to deamon
1 parent 470d83d commit 12aad52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/connector/opencti_connector_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class PingAlive(threading.Thread):
424424
def __init__(
425425
self, connector_logger, connector_id, api, get_state, set_state, metric
426426
) -> None:
427-
threading.Thread.__init__(self)
427+
threading.Thread.__init__(self, daemon=True)
428428
self.connector_logger = connector_logger
429429
self.connector_id = connector_id
430430
self.in_error = False

0 commit comments

Comments
 (0)