mirror of https://github.com/aria2/aria2
Removed socket readability check from checkIfConnectionEstablished()
parent
841395f332
commit
4a4fec2c8c
|
@ -833,7 +833,6 @@ bool AbstractCommand::checkIfConnectionEstablished
|
||||||
const std::string& connectedAddr,
|
const std::string& connectedAddr,
|
||||||
uint16_t connectedPort)
|
uint16_t connectedPort)
|
||||||
{
|
{
|
||||||
if(socket->isReadable(0)) {
|
|
||||||
std::string error = socket->getSocketError();
|
std::string error = socket->getSocketError();
|
||||||
if(!error.empty()) {
|
if(!error.empty()) {
|
||||||
// See also InitiateConnectionCommand::executeInternal()
|
// See also InitiateConnectionCommand::executeInternal()
|
||||||
|
@ -859,7 +858,6 @@ bool AbstractCommand::checkIfConnectionEstablished
|
||||||
throw DL_RETRY_EX
|
throw DL_RETRY_EX
|
||||||
(fmt(MSG_ESTABLISHING_CONNECTION_FAILED, error.c_str()));
|
(fmt(MSG_ESTABLISHING_CONNECTION_FAILED, error.c_str()));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue