elsif( $okopen == 1) { #Kill the walk timer if it is running, someone opened the showcase legit debug("Killing walking timer and starting open timer, authorized user opened showcase $showcasenum"); if( $walkthread[$showcasenum] && $walkthread[$showcasenum]->is_running() && !$walkthread[$showcasenum]->is_detached) { $walkthread[$showcasenum]->kill('KILL')->detach(); } $openthread[$showcasenum] = threads->create(\&opentimer, $showcasenum, $opentime, $showcasedesc); }