forked from markus/S_New4
fix error: stop when season is finished, but doesn't wait for threads
This commit is contained in:
parent
b6fe7c8497
commit
f4918c5322
@ -50,7 +50,7 @@ struct Settings {
|
|||||||
proxy_ip = "127.0.0.1",
|
proxy_ip = "127.0.0.1",
|
||||||
languages = "GerDub,GerSub,Eng",
|
languages = "GerDub,GerSub,Eng",
|
||||||
genaueHoster = "",
|
genaueHoster = "",
|
||||||
version = "3.0.4",
|
version = "3.0.5",
|
||||||
defaultFileVersion="1.6",
|
defaultFileVersion="1.6",
|
||||||
outputFilePath = "",
|
outputFilePath = "",
|
||||||
default_checkPath = "",
|
default_checkPath = "",
|
||||||
|
@ -275,6 +275,9 @@ int ProgramManager::defaultModus(Settings *settings)
|
|||||||
for (int staffel = settings->startSeason; staffel <= maxStaffel; ++staffel) {
|
for (int staffel = settings->startSeason; staffel <= maxStaffel; ++staffel) {
|
||||||
//Test for stopping Program caused -E, -S
|
//Test for stopping Program caused -E, -S
|
||||||
if(staffel > settings->stopSeason && settings->stopSeason > 0) {
|
if(staffel > settings->stopSeason && settings->stopSeason > 0) {
|
||||||
|
if(settings->maxThreads != 0)
|
||||||
|
if(waitForThreads() != 0)
|
||||||
|
return 261;
|
||||||
if(settings->debugMode)
|
if(settings->debugMode)
|
||||||
std::cout << " > Stoppe, weil Staffel: " << staffel << " > StopStaffel " << settings->stopSeason << std::endl;
|
std::cout << " > Stoppe, weil Staffel: " << staffel << " > StopStaffel " << settings->stopSeason << std::endl;
|
||||||
std::cout << " > Fertig, da Staffel " << staffel << " größer ist als StopStaffel " << settings->stopSeason << std::endl;
|
std::cout << " > Fertig, da Staffel " << staffel << " größer ist als StopStaffel " << settings->stopSeason << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user