light: force shutdown of fetch upon {disonnect,detach}

This commit is contained in:
Thomas Schoebel-Theuer 2014-01-28 10:07:58 +01:00
parent cae1b747b1
commit 178637f5e6
1 changed files with 2 additions and 0 deletions

View File

@ -3159,6 +3159,8 @@ done:
if (copy_brick &&
(copy_brick->power.led_off ||
!global->global_power.button ||
!_check_allow(global, parent, "connect") ||
!_check_allow(global, parent, "attach") ||
(copy_brick->copy_last == copy_brick->copy_end &&
(rot->copy_next_is_available > 0 ||
rot->copy_round++ > 3)))) {