infra: fix automatic killing on outputless bricks

This commit is contained in:
Thomas Schoebel-Theuer 2013-01-22 14:54:01 +01:00
parent 03803eeea4
commit 806a62289c
1 changed files with 1 additions and 1 deletions

View File

@ -1220,7 +1220,7 @@ restart:
continue;
}
// only kill unconnected bricks
if (brick->outputs[0] && brick->outputs[0]->nr_connected > 0) {
if (brick->nr_outputs > 0 && brick->outputs[0] && brick->outputs[0]->nr_connected > 0) {
continue;
}
if (only_off) {