Ensure server is not in a conflicting state before initiating a transfer (#4403)

This commit is contained in:
Matthew Penner 2022-10-04 19:57:24 -06:00 committed by GitHub
parent ff37c51eef
commit 815e1e4c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -97,6 +97,8 @@ class ServerTransferController extends Controller
// Check if the selected daemon is online.
$this->daemonConfigurationRepository->setNode($node)->getSystemInformation();
$server->validateTransferState();
// Create a new ServerTransfer entry.
$transfer = new ServerTransfer();