mgr: check if <create_account> RPC succeeded

The <create_account> RPC may fail. If the return value is not checked
the Manager will continue as if the client accepted the command and
created the account successfully. In reality the client returns some
garbage account details.
This commit is contained in:
Juha Sointusalo 2018-11-20 23:50:39 +02:00
parent c5e4eca3af
commit 881e1b0bc2
1 changed files with 2 additions and 1 deletions

View File

@ -436,7 +436,8 @@ void CProjectProcessingPage::OnStateChange( CProjectProcessingPageEvent& WXUNUSE
!CHECK_CLOSINGINPROGRESS()
) {
if (ERR_RETRY == ao->error_num) {
pDoc->rpc.create_account(*ai);
retval = pDoc->rpc.create_account(*ai);
if (retval) break;
}
dtCurrentExecutionTime = wxDateTime::Now();