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
@ -147,8 +147,15 @@ void SaveButton::Tick(float dt)
|
||||
}
|
||||
|
||||
if (thumbnailRequest && thumbnailRequest->CheckDone())
|
||||
{
|
||||
try
|
||||
{
|
||||
thumbnail = thumbnailRequest->Finish();
|
||||
}
|
||||
catch (const http::RequestError &ex)
|
||||
{
|
||||
// TODO: handle
|
||||
}
|
||||
thumbnailRequest.reset();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user