Fix crash if an avatar is missing from the server
Which basically never happens.
This commit is contained in:
parent
5b610f0b0e
commit
0f418ec195
@ -28,7 +28,14 @@ void AvatarButton::Tick(float dt)
|
|||||||
|
|
||||||
if (imageRequest && imageRequest->CheckDone())
|
if (imageRequest && imageRequest->CheckDone())
|
||||||
{
|
{
|
||||||
avatar = imageRequest->Finish();
|
try
|
||||||
|
{
|
||||||
|
avatar = imageRequest->Finish();
|
||||||
|
}
|
||||||
|
catch (const http::RequestError &ex)
|
||||||
|
{
|
||||||
|
// Nothing, oh well.
|
||||||
|
}
|
||||||
imageRequest.reset();
|
imageRequest.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user