mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 16:35:21 -04:00
Merge branch 'v0.6-TorControl' of github.com:csoler/RetroShare into v0.6-TorControl
This commit is contained in:
commit
1e8e489cd1
9 changed files with 49 additions and 8 deletions
|
@ -42,6 +42,11 @@ TorControlDialog::TorControlDialog(QWidget *)
|
|||
adjustSize();
|
||||
}
|
||||
|
||||
TorControlDialog::~TorControlDialog()
|
||||
{
|
||||
rsEvents->unregisterEventsHandler(mEventHandlerId);
|
||||
}
|
||||
|
||||
void TorControlDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> event)
|
||||
{
|
||||
if(event->mType != RsEventType::TOR_MANAGER) return;
|
||||
|
|
|
@ -15,6 +15,7 @@ class TorControlDialog: public QWidget, public Ui::TorControlDialog
|
|||
|
||||
public:
|
||||
TorControlDialog(QWidget *parent =NULL);
|
||||
virtual ~TorControlDialog();
|
||||
|
||||
enum TorStatus {
|
||||
TOR_STATUS_UNKNOWN = 0x00,
|
||||
|
|
|
@ -591,6 +591,10 @@ feenableexcept(FE_INVALID | FE_DIVBYZERO);
|
|||
RsGxsUpdateBroadcast::cleanup();
|
||||
#endif
|
||||
|
||||
if (is_auto_tor) {
|
||||
RsTor::stop();
|
||||
}
|
||||
|
||||
RsControl::instance()->rsGlobalShutDown();
|
||||
|
||||
delete(soundManager);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue