proxy: improve proxy cleanup

When we destroy a proxy, mark it as zombie until the server removes
the id. This way we can still keep the id locked with a valid entry
and remove it later.
This commit is contained in:
Wim Taymans 2019-08-14 11:46:07 +02:00
parent d86e462dca
commit 35f617157f
4 changed files with 26 additions and 16 deletions

View file

@ -655,6 +655,8 @@ struct pw_proxy {
struct spa_list link; /**< link in the remote */
uint32_t id; /**< client side id */
unsigned int zombie:1; /**< proxy is removed locally and waiting to
* be removed from server */
unsigned int removed:1; /**< proxy was removed from server */
struct spa_hook_list listener_list;