mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -04:00
fixed Tor icon to stay red
This commit is contained in:
parent
3121a61910
commit
bdbcadc43c
3 changed files with 15 additions and 4 deletions
|
@ -262,9 +262,19 @@ bool TorManager::setupHiddenService()
|
|||
return true ;
|
||||
}
|
||||
|
||||
void TorManager::hiddenServiceStatusChanged(int old_status,int new_status)
|
||||
void TorManager::hiddenServiceStatusChanged(int new_status,int old_status)
|
||||
{
|
||||
std::cerr << "Hidden service status changed from " << old_status << " to " << new_status << std::endl;
|
||||
|
||||
if(rsEvents)
|
||||
{
|
||||
auto ev = std::make_shared<RsTorManagerEvent>();
|
||||
ev->mTorManagerEventType = RsTorManagerEventCode::TOR_STATUS_CHANGED;
|
||||
ev->mTorConnectivityStatus = RsTorConnectivityStatus::HIDDEN_SERVICE_READY;
|
||||
ev->mTorStatus = RsTorStatus::READY;
|
||||
|
||||
rsEvents->sendEvent(ev);
|
||||
}
|
||||
}
|
||||
|
||||
void TorManager::hiddenServicePrivateKeyChanged()
|
||||
|
|
|
@ -92,7 +92,7 @@ public:
|
|||
virtual void hiddenServiceOnline() override {} // do nothing here.
|
||||
virtual void hiddenServicePrivateKeyChanged() override;
|
||||
virtual void hiddenServiceHostnameChanged() override;
|
||||
virtual void hiddenServiceStatusChanged(int old_status,int new_status) override;
|
||||
virtual void hiddenServiceStatusChanged(int new_status, int old_status) override;
|
||||
|
||||
// Thread stuff
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue