Reacted on changed media profile of stdio-drives

This commit is contained in:
2007-09-07 12:38:20 +00:00
parent e72b2fd732
commit 0b13c31b07
5 changed files with 65 additions and 25 deletions

View File

@ -130,8 +130,13 @@ static void remove_worker(pthread_t th)
static void *scan_worker_func(struct w_list *w)
{
burn_drive_scan_sync(w->u.scan.drives, w->u.scan.n_drives);
w->u.scan.done = 1;
int ret;
ret = burn_drive_scan_sync(w->u.scan.drives, w->u.scan.n_drives);
if (ret <= 0)
w->u.scan.done = -1;
else
w->u.scan.done = 1;
return NULL;
}
@ -165,7 +170,7 @@ drive_is_active:;
return -1;
}
if (!workers) {
if (workers == NULL) {
/* start it */
/* ts A61007 : test moved up from burn_drive_scan_sync()