Fix crash if a save thumbnail is missing from the server
Which basically never happens. Except when the server runs out of space :) See 0f418ec195
for a similar fix.
This commit is contained in:
parent
2c04cf510a
commit
53d573ad3c
@ -148,7 +148,14 @@ void SaveButton::Tick(float dt)
|
|||||||
|
|
||||||
if (thumbnailRequest && thumbnailRequest->CheckDone())
|
if (thumbnailRequest && thumbnailRequest->CheckDone())
|
||||||
{
|
{
|
||||||
thumbnail = thumbnailRequest->Finish();
|
try
|
||||||
|
{
|
||||||
|
thumbnail = thumbnailRequest->Finish();
|
||||||
|
}
|
||||||
|
catch (const http::RequestError &ex)
|
||||||
|
{
|
||||||
|
// TODO: handle
|
||||||
|
}
|
||||||
thumbnailRequest.reset();
|
thumbnailRequest.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user