protected function cooldown()
    {
        if ($this->coolingDown()) {
            return;
        }

        if ($this->restartAgainAt) {
            $this->restartAgainAt = ! $this->process->isRunning()
                            ? Chronos::now()->addMinute()
                            : null;

            if (! $this->process->isRunning()) {
                event(new UnableToLaunchProcess($this));
            }
        } else {
            $this->restartAgainAt = Chronos::now()->addSecond();
        }
    }
protected function cooldown()
    {
        if ($this->coolingDown()) {
            return;
        }

        if ($this->restartAgainAt) {
            $this->restartAgainAt = ! $this->process->isRunning()
                            ? Chronos::now()->addMinute()
                            : null;

            if (! $this->process->isRunning()) {
                event(new UnableToLaunchProcess($this));
            }
        } else {
            $this->restartAgainAt = Chronos::now()->addSecond();
        }
    }
protected function cooldown ( ) { if ( $ this -> coolingDown ( ) ) { return ; } if ( $ this -> restartAgainAt ) { $ this -> restartAgainAt = ! $ this -> process -> isRunning ( ) ? Chronos :: now ( ) -> addMinute ( ) : null ; if ( ! $ this -> process -> isRunning ( ) ) { event ( new UnableToLaunchProcess ( $ this ) ) ; } } else { $ this -> restartAgainAt = Chronos :: now ( ) -> addSecond ( ) ; } }
Begin the cool-down period for the process.

@return void
Begin the cool - down period for the process .