Skip to content

Commit

Permalink
Updates the code to start the server upon unsuspension
Browse files Browse the repository at this point in the history
  • Loading branch information
AnushK-Fro authored Nov 6, 2024
1 parent b47adac commit 2b16841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/Servers/ServerSuspensionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2b16841

Please sign in to comment.