context: wait for proxy info

Only become connected after we have received all proxy bind replies.
This commit is contained in:
Wim Taymans 2017-04-04 12:04:46 +02:00
parent 032cc69f2f
commit 70255b5ecd

View file

@ -128,6 +128,8 @@ core_event_done (void *object,
PinosContext *this = proxy->context; PinosContext *this = proxy->context;
if (seq == 0) { if (seq == 0) {
pinos_core_do_sync (this->core_proxy, 1);
} else if (seq == 1) {
context_set_state (this, PINOS_CONTEXT_STATE_CONNECTED, NULL); context_set_state (this, PINOS_CONTEXT_STATE_CONNECTED, NULL);
} }
} }