mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
fixed a few bugs
This commit is contained in:
parent
bdbcadc43c
commit
f352235ccd
5 changed files with 18 additions and 27 deletions
|
@ -38,7 +38,7 @@
|
|||
using namespace Tor;
|
||||
|
||||
AddOnionCommand::AddOnionCommand(HiddenService *service)
|
||||
: m_service(service)
|
||||
: m_service(service), mSucceeded([](){}), mFailed([](int){})
|
||||
{
|
||||
assert(m_service);
|
||||
}
|
||||
|
|
|
@ -487,7 +487,7 @@ void TorControl::getTorInfo()
|
|||
void TorControl::getTorInfoReply(TorControlCommand *sender)
|
||||
{
|
||||
GetConfCommand *command = dynamic_cast<GetConfCommand*>(sender);
|
||||
if (!command || !isConnected())
|
||||
if (!command)// || !isConnected())
|
||||
return;
|
||||
|
||||
std::list<ByteArray> listenAddresses = splitQuotedStrings(command->get("net/listeners/socks").front(), ' ');
|
||||
|
|
|
@ -97,7 +97,7 @@ public:
|
|||
void setAuthPassword(const ByteArray& password);
|
||||
|
||||
/* Connection */
|
||||
bool isConnected() const { return status() == Authenticated; }
|
||||
bool isConnected() const { return status() >= Authenticated; }
|
||||
void connect(const std::string &address, uint16_t port);
|
||||
void authenticate();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue