core-proxy: improve cleanup

Also disconnect filters.
Ignore multiple destroy calls. This can happen when the protocol
destroys the core-proxy and some implementation cleanup code
does the same. The cleanup code can't reliably know about this
cleanup.
This commit is contained in:
Wim Taymans 2019-12-09 12:30:49 +01:00
parent e27331a25e
commit b5811280ef
2 changed files with 13 additions and 6 deletions

View file

@ -753,6 +753,8 @@ struct pw_core_proxy {
int recv_seq; /**< last received sequence number */
int send_seq; /**< last protocol result code */
unsigned int destroyed:1;
void *user_data; /**< extra user data */
};