Refactor session relay synchronization logic for improved clarity

This commit is contained in:
Jeppe Bundgaard
2026-06-08 16:59:53 +02:00
parent 325b35beb7
commit d8abc8f87d
@@ -172,9 +172,11 @@ class selfserve_wash_flow implements selfserve_wash_flow_i
return $mutationResult['response'];
}
if ($syncRelayState && $session->exists()) {
if ($syncRelayState) {
if ($session->exists()) {
$this->syncMachineRelayFromVisibleServices($snapshot, $session, $activateMachine);
}
}
return $this->getSessionSummary((int)$session->id);
}