context: stop reading messages when disconnecting

This commit is contained in:
David Svensson Fors 2017-03-17 12:10:25 +01:00 committed by Wim Taymans
parent 663a3df9af
commit bc2f53a31c

View file

@ -425,7 +425,8 @@ on_context_data (SpaLoopUtils *utils,
uint32_t size;
void *message;
while (pinos_connection_get_next (conn, &opcode, &id, &message, &size)) {
while (!impl->disconnecting
&& pinos_connection_get_next (conn, &opcode, &id, &message, &size)) {
PinosProxy *proxy;
const PinosDemarshalFunc *demarshal;