mirror of https://github.com/aria2/aria2
main.cc: prevent system from sleeping on Windows
parent
f4cbc7bb31
commit
463fae6c59
|
@ -68,7 +68,11 @@ error_code::Value main(int argc, char** argv)
|
|||
pargv[i] = winArgStrs.back().get();
|
||||
}
|
||||
|
||||
SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED);
|
||||
|
||||
Context context(true, winArgc, pargv.get(), KeyVals());
|
||||
|
||||
SetThreadExecutionState(ES_CONTINUOUS);
|
||||
#else // !__MINGW32__
|
||||
Context context(true, argc, argv, KeyVals());
|
||||
#endif // !__MINGW32__
|
||||
|
|
Loading…
Reference in New Issue