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