summaryrefslogtreecommitdiff
path: root/src/RequestGroupMan.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-25 21:46:31 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-25 21:46:31 +0900
commit90abec8a362d6224bfff76d12fc9365fac36ddaa (patch)
tree115a8248adda60f01004bdae167571c3f95d3806 /src/RequestGroupMan.cc
parentbbb978948d87790c6dfb78eaca1d47d45101443d (diff)
Move initialization code in aria2::main to struct Context
Diffstat (limited to 'src/RequestGroupMan.cc')
-rw-r--r--src/RequestGroupMan.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/RequestGroupMan.cc b/src/RequestGroupMan.cc
index d24e274f..fb8b4994 100644
--- a/src/RequestGroupMan.cc
+++ b/src/RequestGroupMan.cc
@@ -214,9 +214,8 @@ void notifyDownloadEvent
(const std::string& event, const SharedHandle<RequestGroup>& group)
{
// Check NULL to make unit test easier.
- Notifier* notifier = SingletonHolder<Notifier>::instance();
- if(notifier) {
- notifier->notifyDownloadEvent(event, group);
+ if(SingletonHolder<Notifier>::instance()) {
+ SingletonHolder<Notifier>::instance()->notifyDownloadEvent(event, group);
}
}