diff --git a/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py b/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py index 07ca594f1..1c0f9f79d 100755 --- a/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py +++ b/recipes-app/board-conf-tools/files/board-conf-tools/iot2050setup.py @@ -23,8 +23,7 @@ def threadDecorator(func): def wrapper(*args, **kwargs): - thread = threading.Thread(target=func, args=args, kwargs=kwargs) - thread.setDaemon(True) + thread = threading.Thread(target=func, args=args, kwargs=kwargs, daemon=True) thread.start() thread.join(3) if thread.is_alive():