Skip to content

Commit

Permalink
Merge #1110
Browse files Browse the repository at this point in the history
1110: fix-1106-more r=wmww a=AlanGriffiths

We should stop accepting "commit" and disconnect if a surface has gone.

Co-authored-by: Alan Griffiths <[email protected]>
  • Loading branch information
bors[bot] and AlanGriffiths committed Dec 3, 2019
1 parent e35a76b commit fa4cfaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/server/scene/basic_surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ ms::BasicSurface::BasicSurface(
{
if (auto const o = observers.lock())
o->frame_posted(this, 1, size);
else
BOOST_THROW_EXCEPTION(std::runtime_error("Frame posted to dead surface"));
};

for (auto& layer : layers)
Expand Down Expand Up @@ -915,6 +917,8 @@ void ms::BasicSurface::set_streams(std::list<scene::StreamInfo> const& s)
{
if (auto const o = observers.lock())
o->frame_posted(this, 1, size);
else
BOOST_THROW_EXCEPTION(std::runtime_error("Frame posted to dead surface"));
});
surface_top_left = surface_rect.top_left;
}
Expand Down
2 changes: 1 addition & 1 deletion src/wayland/wayland_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void mw::internal_error_processing_request(wl_client* client, char const* method
wl_client_post_no_memory(client);
#endif
::mir::log(
::mir::logging::Severity::error,
::mir::logging::Severity::warning,
"frontend:Wayland",
std::current_exception(),
std::string() + "Exception processing " + method_name + " request");
Expand Down

0 comments on commit fa4cfaf

Please sign in to comment.