Skip to content

Commit 12be64b

Browse files
authored
Merge pull request #2559 from pygame-community/daemon-fix
Fix setDaemon() deprecation error
2 parents 20344d5 + 4f392d2 commit 12be64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_py/threads/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _setup_workers(self, num_workers):
140140
self.pool.append(Thread(target=self.threadloop))
141141

142142
for a_thread in self.pool:
143-
a_thread.setDaemon(True)
143+
a_thread.daemon = True
144144
a_thread.start()
145145

146146
def do(self, f, *args, **kwArgs):

0 commit comments

Comments
 (0)