Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libvchan_is_open() on server side before client got connected returns VCHAN_WAITING (2), so check for this value instead of 0. Fortunately, libvchan_read called later do wait for client connection if needed, so it was working by a coincidence. Also, don't try to reconnect when that initial waiting (or one of first vchan reads/writes). Reconnection logic assume that X server is already running, and generally gui-agent is fully initialized already, which isn't true in such a case. Theoretically this could be handled by resuming/restarting initialization procedure, but such a change is too big at this stage of Qubes 4.0 development. (cherry picked from commit 063e14f)
- Loading branch information