Enabled patience 0 within burn_abort()
This commit is contained in:
parent
b751213ed7
commit
5174bd3852
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2010.02.28.110749"
|
#define Cdrskin_timestamP "2010.03.03.140639"
|
||||||
|
@ -1896,7 +1896,7 @@ int burn_abort(int patience,
|
|||||||
change status on their own.
|
change status on their own.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
while(current_time-end_time < patience) {
|
while(current_time < end_time || (patience <= 0 && first_round)) {
|
||||||
still_not_done = 0;
|
still_not_done = 0;
|
||||||
|
|
||||||
for(i = 0; i < drivetop + 1; i++) {
|
for(i = 0; i < drivetop + 1; i++) {
|
||||||
@ -1946,7 +1946,7 @@ int burn_abort(int patience,
|
|||||||
}
|
}
|
||||||
first_round = 0;
|
first_round = 0;
|
||||||
|
|
||||||
if(still_not_done == 0)
|
if(still_not_done == 0 || patience <= 0)
|
||||||
break;
|
break;
|
||||||
usleep(wait_grain);
|
usleep(wait_grain);
|
||||||
current_time = time(0);
|
current_time = time(0);
|
||||||
@ -1959,6 +1959,7 @@ int burn_abort(int patience,
|
|||||||
pacifier_time = current_time;
|
pacifier_time = current_time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (patience > 0)
|
||||||
burn_finish();
|
burn_finish();
|
||||||
return(still_not_done == 0);
|
return(still_not_done == 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user