fix: restart proxy
This commit is contained in:
parent
659309c5b4
commit
baf6c20997
1 changed files with 2 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ public function proxyStatusUpdated()
|
|||
public function restart()
|
||||
{
|
||||
try {
|
||||
$this->stop(forceStop: false);
|
||||
$this->stop();
|
||||
$this->dispatch('checkProxy');
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
|
|
@ -105,6 +105,7 @@ public function stop(bool $forceStop = true)
|
|||
|
||||
$startTime = Carbon::now()->getTimestamp();
|
||||
while ($process->running()) {
|
||||
ray('running');
|
||||
if (Carbon::now()->getTimestamp() - $startTime >= $timeout) {
|
||||
$this->forceStopContainer($containerName);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue