Remove check for running tmux when killing session, tmux was already stopped before

This commit is contained in:
DariusIII
2019-01-12 17:24:06 +01:00
parent 8ffcc68752
commit 7f4827bbeb
+1 -1
View File
@@ -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);