mirror of https://github.com/aria2/aria2
2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Quickly terminate commands when ctrl-c is pressed. * src/DownloadEngine.ccpull/1/head
parent
ec2354f3a1
commit
8b3a21eb10
|
@ -1,3 +1,8 @@
|
|||
2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Quickly terminate commands when ctrl-c is pressed.
|
||||
* src/DownloadEngine.cc
|
||||
|
||||
2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Quickly terminate idle commands when download finished.
|
||||
|
|
|
@ -820,10 +820,14 @@ void DownloadEngine::afterEachIteration()
|
|||
logger->notice(_("Shutdown sequence commencing... Press Ctrl-C again for emergency shutdown."));
|
||||
requestHalt();
|
||||
globalHaltRequested = 2;
|
||||
setNoWait(true);
|
||||
setRefreshInterval(0);
|
||||
} else if(globalHaltRequested == 3) {
|
||||
logger->notice(_("Emergency shutdown sequence commencing..."));
|
||||
_requestGroupMan->forceHalt();
|
||||
globalHaltRequested = 4;
|
||||
setNoWait(true);
|
||||
setRefreshInterval(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue