diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 15:02:20 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 15:02:20 +0000 |
| commit | 9afc36152a1ce428243a3ace608d0508716a2efb (patch) | |
| tree | 2e144d04570a058f3e2716d7b98f16803392cdbe /src/InitiateConnectionCommand.cc | |
| parent | 7cd9b21937c42606354610c7ae85a0857b474cf5 (diff) | |
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variables of Command private. Added accessor
funcs.
Diffstat (limited to 'src/InitiateConnectionCommand.cc')
| -rw-r--r-- | src/InitiateConnectionCommand.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/InitiateConnectionCommand.cc b/src/InitiateConnectionCommand.cc index 05729419..6ef9e9c2 100644 --- a/src/InitiateConnectionCommand.cc +++ b/src/InitiateConnectionCommand.cc @@ -101,14 +101,14 @@ bool InitiateConnectionCommand::executeInternal() { // TODO ipaddr might not be used if pooled sockt was found. e->markBadIPAddress(hostname, ipaddr, port); if(!e->findCachedIPAddress(hostname, port).empty()) { - if(logger->info()) { - logger->info(EX_EXCEPTION_CAUGHT, ex); - logger->info(MSG_CONNECT_FAILED_AND_RETRY, - util::itos(cuid).c_str(), ipaddr.c_str(), port); + if(getLogger()->info()) { + getLogger()->info(EX_EXCEPTION_CAUGHT, ex); + getLogger()->info(MSG_CONNECT_FAILED_AND_RETRY, + util::itos(getCuid()).c_str(), ipaddr.c_str(), port); } Command* command = InitiateConnectionCommandFactory::createInitiateConnectionCommand - (cuid, req, _fileEntry, _requestGroup, e); + (getCuid(), req, _fileEntry, _requestGroup, e); e->setNoWait(true); e->addCommand(command); return true; |
