light: fix potential endless loop

This commit is contained in:
Thomas Schoebel-Theuer 2014-02-25 19:31:36 +01:00
parent bd9b46fc05
commit e6abaaa161
1 changed files with 2 additions and 2 deletions

View File

@ -3188,9 +3188,9 @@ done:
status = mars_kill_brick((void*)fetch_brick);
if (status < 0) {
MARS_ERR("could not kill fetch_brick, status = %d\n", status);
goto done;
} else {
fetch_brick = NULL;
}
fetch_brick = NULL;
mars_trigger();
}
rot->fetch_next_is_available = 0;