mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-07 17:05:16 -04:00
Don't start the check_for_requests timer until after connected to Tor, and remove OnionShareGui.tor_con and TorConnectionDialog.t as class variables, making them local variables instead
This commit is contained in:
parent
ebbe490a65
commit
8f585db127
2 changed files with 24 additions and 25 deletions
|
@ -57,14 +57,14 @@ class TorConnectionDialog(QtWidgets.QProgressDialog):
|
|||
def start(self):
|
||||
common.log('TorConnectionDialog', 'start')
|
||||
|
||||
self.t = TorConnectionThread(self, self.settings, self.onion)
|
||||
self.t.tor_status_update.connect(self._tor_status_update)
|
||||
self.t.connected_to_tor.connect(self._connected_to_tor)
|
||||
self.t.canceled_connecting_to_tor.connect(self._canceled_connecting_to_tor)
|
||||
self.t.error_connecting_to_tor.connect(self._error_connecting_to_tor)
|
||||
self.t.start()
|
||||
t = TorConnectionThread(self, self.settings, self.onion)
|
||||
t.tor_status_update.connect(self._tor_status_update)
|
||||
t.connected_to_tor.connect(self._connected_to_tor)
|
||||
t.canceled_connecting_to_tor.connect(self._canceled_connecting_to_tor)
|
||||
t.error_connecting_to_tor.connect(self._error_connecting_to_tor)
|
||||
t.start()
|
||||
|
||||
# The main thread needs to remain active, and checkign for Qt events,
|
||||
# The main thread needs to remain active, and checking for Qt events,
|
||||
# until the thread is finished. Otherwise it won't be able to handle
|
||||
# accepting signals.
|
||||
self.active = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue