diff --git a/app/Services/Servers/ServerSuspensionService.php b/app/Services/Servers/ServerSuspensionService.php index e27ead01aab..ab79ee60bfc 100644 --- a/app/Services/Servers/ServerSuspensionService.php +++ b/app/Services/Servers/ServerSuspensionService.php @@ -31,7 +31,7 @@ public function toggle(Server $server, SuspensionAction $action = SuspensionActi ]); try { - $this->powerRepository->setServer($server)->send(PowerAction::KILL); + $this->powerRepository->setServer($server)->send($isSuspending ? PowerAction::KILL : PowerAction::START); } catch (Exception $exception) { $server->update([ 'status' => $isSuspending ? null : Status::SUSPENDED->value,