mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-05 13:03:55 -07:00
fix client crash when server goes down during registration (#5787)
This commit is contained in:
parent
3b758962e4
commit
9463390e80
2 changed files with 8 additions and 0 deletions
|
|
@ -339,6 +339,11 @@ void RemoteClient::registerResponse(const Response &response)
|
|||
emit registerAcceptedNeedsActivate();
|
||||
doLogin();
|
||||
break;
|
||||
case Response::RespNotConnected:
|
||||
// this response is created by the client from doDisconnectFromServer, do not call it again!
|
||||
emit registerError(response.response_code(), QString::fromStdString(resp.denied_reason_str()),
|
||||
static_cast<quint32>(resp.denied_end_time()));
|
||||
break;
|
||||
default:
|
||||
emit registerError(response.response_code(), QString::fromStdString(resp.denied_reason_str()),
|
||||
static_cast<quint32>(resp.denied_end_time()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue