Skip to content

Commit

Permalink
Merge pull request #119 from AnushK-Fro/patch-3
Browse files Browse the repository at this point in the history
Updates the code to start the server upon unsuspension
  • Loading branch information
ericwang401 authored Nov 6, 2024
2 parents 1d6390d + 2b16841 commit bdc9c41
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 bdc9c41

Please sign in to comment.