Avoiding START UNIT before the drive gets released

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

View File

@ -244,7 +244,8 @@ int mmc_function_spy(struct burn_drive *d, char * text)
return 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->is_stopped = 0;
}