Use Url inside Client. Remove onLoginCredentialsRequired from IClientListener interface.
This commit is contained in:
parent
c0dcfc2a97
commit
b2d26eb019
7 changed files with 66 additions and 71 deletions
|
@ -118,12 +118,6 @@ void Network::onJobResult(const JobResult &result)
|
|||
}
|
||||
|
||||
|
||||
void Network::onLoginCredentialsRequired(Client *client)
|
||||
{
|
||||
client->login(m_options->pools().front()->password(), m_options->pools().front()->password(), m_agent);
|
||||
}
|
||||
|
||||
|
||||
void Network::onLoginSuccess(Client *client)
|
||||
{
|
||||
const int id = client->id();
|
||||
|
@ -151,7 +145,7 @@ void Network::addPool(const Url *url)
|
|||
return;
|
||||
}
|
||||
|
||||
Client *client = new Client(m_pools.size(), this);
|
||||
Client *client = new Client(m_pools.size(), m_agent, this);
|
||||
client->setUrl(url);
|
||||
client->setRetryPause(m_options->retryPause() * 1000);
|
||||
// client->setKeepAlive(m_options->keepAlive());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue