diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-14 13:43:34 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-14 13:43:34 +0000 |
| commit | 0680ac5e5ed2426ed01d735bca5fbb57d6c925bb (patch) | |
| tree | 0763565d76353f8a29f5bc2dddfaa7595bb88112 /src/Command.cc | |
| parent | 81b2e6e1089f7765c246a7476df080db2f3499c6 (diff) | |
2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
If error event is received in epoll, then abort download
immediately.
* src/AbstractCommand.cc
* src/Command.cc
* src/Command.h
* src/DownloadEngine.cc
* src/PeerAbstractCommand.cc
Diffstat (limited to 'src/Command.cc')
| -rw-r--r-- | src/Command.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Command.cc b/src/Command.cc index 116e7d5b..acc46638 100644 --- a/src/Command.cc +++ b/src/Command.cc @@ -46,7 +46,8 @@ Command::Command(int32_t cuid):uuid(uuidGen++), logger(LogFactory::getInstance()), _readEvent(false), _writeEvent(false), - _errorEvent(false) {} + _errorEvent(false), + _hupEvent(false) {} void Command::transitStatus() { @@ -73,16 +74,22 @@ void Command::writeEventReceived() _writeEvent = true; } -void Command::errorEventRecieved() +void Command::errorEventReceived() { _errorEvent = true; } +void Command::hupEventReceived() +{ + _hupEvent = true; +} + void Command::clearIOEvents() { _readEvent = false; _writeEvent = false; _errorEvent = false; + _hupEvent = false; } } // namespace aria2 |
