server: Set client->error when we fail to send a closure
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 6 Aug 2013 17:15:35 +0000 (10:15 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 6 Aug 2013 17:16:46 +0000 (10:16 -0700)
commitdbeb5134fa8e612826d7c7d5b9146e89822c59fb
tree61827593527a814afe01efc6eb0dab0258dd5753
parent1b0cabfc48cf4c13fec95f749d3b44050fe9ff79
server: Set client->error when we fail to send a closure

We we're using wl_event_loop_add_idle() here, but if we're failing
because of OOM, that will typically also fail.  Instead, use the
existing client->error flag, which will break out of the event
handling loop and shut down the client.
src/wayland-server.c