Skip to content

Commit

Permalink
[fuchsia] Fix crash from my recent CL (flutter#4621)
Browse files Browse the repository at this point in the history
We need to handle the error case properly.
  • Loading branch information
abarth authored Jan 31, 2018
1 parent 96acd1a commit eb04440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content_handler/vulkan_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ async_wait_result_t VulkanSurface::OnHandleReady(async_t* async,
zx_status_t status,
const zx_packet_signal_t* signal) {
ASSERT_IS_GPU_THREAD;
if (status != ZX_OK)
return ASYNC_WAIT_FINISHED;
FXL_DCHECK(signal->observed & ZX_EVENT_SIGNALED);
Reset();
return ASYNC_WAIT_AGAIN;
Expand Down

0 comments on commit eb04440

Please sign in to comment.