Avoiding START UNIT before the drive gets released

This commit is contained in:
Thomas Schmitt 2009-11-10 12:21:43 +00:00
parent 85d8c13d35
commit 277255953f
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2009.11.08.121334" #define Cdrskin_timestamP "2009.11.10.132154"

View File

@ -244,7 +244,8 @@ int mmc_function_spy(struct burn_drive *d, char * text)
return 0; return 0;
} }
if (d->is_stopped && strcmp(text, "stop_unit") != 0 && if (d->is_stopped && strcmp(text, "stop_unit") != 0 &&
strcmp(text, "start_unit") != 0) { strcmp(text, "start_unit") != 0 &&
strncmp(text, "sg_", 3) != 0) {
d->start_unit(d); d->start_unit(d);
d->is_stopped = 0; d->is_stopped = 0;
} }