mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-16 20:30:00 +10:00
network_handler.py: Ensure stop() holds thread
This commit is contained in:
@@ -301,5 +301,6 @@ class DownloadObject:
|
||||
"""
|
||||
|
||||
self.should_stop = True
|
||||
if self.active_thread.is_alive():
|
||||
time.sleep(1)
|
||||
if self.active_thread:
|
||||
while self.active_thread.is_alive():
|
||||
time.sleep(1)
|
||||
Reference in New Issue
Block a user