main: restart future qio only after fully off

This commit is contained in:
Thomas Schoebel-Theuer 2022-06-02 12:04:10 +02:00 committed by Thomas Schoebel-Theuer
parent 4e928bafc9
commit 66c42718d7

View File

@ -2003,6 +2003,11 @@ int __make_copy(struct mars_dent *belongs,
aio->power.button &&
aio->power.led_on)
goto found;
/* Wait until the old brick is fully off */
if (aio &&
!aio->power.button &&
!aio->power.led_off)
goto done;
}
cc.argv[i] = argv[i];