[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/torbrowser-launcher][main] 2 commits: fix: keep thread references



Title: GitLab

asciiwolf pushed to branch main at The Tor Project / Applications / torbrowser-launcher

Commits:

  • 6a0d6235
    by BTD Master at 2025-09-27T10:12:08+01:00
    fix: keep thread references
    
  • b44e2146
    by asciiwolf at 2025-09-27T11:02:42+00:00
    Merge branch 'keep-thread-references' into 'main'
    
    Keep thread references
    
    Closes #35
    
    See merge request tpo/applications/torbrowser-launcher!34

1 changed file:

Changes:

  • torbrowser_launcher/launcher.py
    ... ... @@ -71,6 +71,7 @@ class Launcher(QtWidgets.QMainWindow):
    71 71
     
    
    72 72
             self.url_list = url_list
    
    73 73
             self.force_redownload = False
    
    74
    +        self._threads = []
    
    74 75
     
    
    75 76
             # This is the current version of Tor Browser, which should get updated with every release
    
    76 77
             self.min_version = "13.0"
    
    ... ... @@ -350,9 +351,11 @@ class Launcher(QtWidgets.QMainWindow):
    350 351
             t.progress_update.connect(progress_update)
    
    351 352
             t.download_complete.connect(download_complete)
    
    352 353
             t.download_error.connect(download_error)
    
    354
    +        self._threads.append(t)
    
    353 355
             t.start()
    
    354 356
             time.sleep(0.2)
    
    355 357
     
    
    358
    +
    
    356 359
         def try_default_mirror(self):
    
    357 360
             # change mirror to default and relaunch TBL
    
    358 361
             self.common.settings["mirror"] = self.common.default_mirror
    
    ... ... @@ -420,6 +423,7 @@ class Launcher(QtWidgets.QMainWindow):
    420 423
             t = VerifyThread(self.common)
    
    421 424
             t.error.connect(error)
    
    422 425
             t.success.connect(success)
    
    426
    +        self._threads.append(t)
    
    423 427
             t.start()
    
    424 428
             time.sleep(0.2)
    
    425 429
     
    
    ... ... @@ -449,6 +453,7 @@ class Launcher(QtWidgets.QMainWindow):
    449 453
             t = ExtractThread(self.common)
    
    450 454
             t.error.connect(error)
    
    451 455
             t.success.connect(success)
    
    456
    +        self._threads.append(t)
    
    452 457
             t.start()
    
    453 458
             time.sleep(0.2)
    
    454 459
     
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx