From 7f4827bbeb29559a970a6c4ff43ca43e4b982310 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Sat, 12 Jan 2019 17:24:06 +0100 Subject: [PATCH] Remove check for running tmux when killing session, tmux was already stopped before --- app/Console/Commands/TmuxUIStop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/TmuxUIStop.php b/app/Console/Commands/TmuxUIStop.php index 33330960e..c9aead1f4 100644 --- a/app/Console/Commands/TmuxUIStop.php +++ b/app/Console/Commands/TmuxUIStop.php @@ -30,7 +30,7 @@ class TmuxUIStop extends Command { $tmux = new Tmux(); $tmux->stopIfRunning(); - if ($tmux->isRunning() && $this->option('kill') === true) { + if ($this->option('kill') === true) { $sessionName = Settings::settingValue('site.tmux.tmux_session'); $tmuxSession = new Process('tmux kill-session -t '.$sessionName); $this->info('Killing active tmux session: '.$sessionName);