mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Remove check for running tmux when killing session, tmux was already stopped before
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user