From 1eea1a6a229ae37b6f8b9566de916a02a7591ac9 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 4 Nov 2023 17:56:20 +0100 Subject: [PATCH] Updated example --- Examples/Filetransfer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Examples/Filetransfer.py b/Examples/Filetransfer.py index d6654c3..98c4c7a 100644 --- a/Examples/Filetransfer.py +++ b/Examples/Filetransfer.py @@ -449,8 +449,7 @@ def link_established(link): # And set up a small job to check for # a potential timeout in receiving the # file list - thread = threading.Thread(target=filelist_timeout_job) - thread.setDaemon(True) + thread = threading.Thread(target=filelist_timeout_job, daemon=True) thread.start() # This job just sleeps for the specified