proxy: only call destroy once

Make sure only emit destroy once by making the proxy a zombie
from the first call to destroy. Also make sure we don't call destroy
twice without remove.
This commit is contained in:
Wim Taymans 2019-12-17 10:44:22 +01:00
parent 3c846fbb1d
commit 98c81fff93
2 changed files with 12 additions and 2 deletions

View file

@ -740,6 +740,7 @@ struct pw_proxy {
unsigned int zombie:1; /**< proxy is removed locally and waiting to
* be removed from server */
unsigned int removed:1; /**< proxy was removed from server */
unsigned int destroyed:1; /**< proxy was destroyed by client */
struct spa_hook_list listener_list;
struct spa_hook_list object_listener_list;