desktop: Do not attempt to send terminate event 15/28015/1
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 21 Sep 2022 16:44:52 +0000 (19:44 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Thu, 22 Sep 2022 11:01:36 +0000 (14:01 +0300)
commitd08a5b2010f6e6feb1642ebf8e8444c4091d70dc
treeaafaf1aa1e3b0d39ab21c029020e18d19f9e8e6b
parent0512e7251611e7040c550bb4c6cc972d57b45144
desktop: Do not attempt to send terminate event

For cases where the shell client itself is stopped/terminated
or the compositor is taken down, and implicitly with it, the shell
client we won't really have a reasource available.  Use the shell_ready
flag to verify that.

Fixes: 0512e7251611e7040c55

Bug-AGL: SPEC-4528
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I78b4fb39a76402535e642dda9cf284b57856376d
src/desktop.c