diff --git a/code/common/mh_control.pl b/code/common/mh_control.pl index 20b40423a..dd0a41d0d 100644 --- a/code/common/mh_control.pl +++ b/code/common/mh_control.pl @@ -103,7 +103,13 @@ () $v_restart_mh->set_info( 'Restarts Misterhouse. This will only work if ' . 'you start with mh/bin/mhl') if !$OS_win; $v_restart_mh->set_info('Restarts Misterhouse.') if $OS_win; -$v_restart_mh->tie_event('&exit_pgm(1)'); # noloop +$v_restart_mh->tie_event('&restart_mh()'); # noloop + +sub restart_mh{ + $exit_timer = new Timer; + print_log "MisterHouse will restart in 2 seconds."; + $exit_timer->set(2, '&exit_pgm(1)'); +} # This will be abend. # Allow for no msg on first time use where this flag is not set yet.