eds: Handle BUSY errors when opening address books better
authorPhilip Withnall <philip@tecnocode.co.uk>
Fri, 6 Jan 2012 18:29:21 +0000 (18:29 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Fri, 6 Jan 2012 18:48:35 +0000 (18:48 +0000)
commit9eac06d8f0fe7cb5e58a95d7540f670419d98e54
treef8b2c074e9977648178ea244db0ded598e32e289
parent07bd131884ce4ae7d6e1fa9bf777da38b82b1a46
eds: Handle BUSY errors when opening address books better

If another process is in the middle of opening an address book when we come
to try and open it, our open() call will return immediately with a BUSY
error.

In this case, we need to wait for the EClient::opened signal to know when
the open operation has finished.

Hopefully, this will fix those irritating ‘blah is busy’ errors I frequently
get when running the EDS backend test suite. Hopefully it also won’t
introduce too many other problems.
backends/eds/lib/edsf-persona-store.vala