winepulse.drv: Check that the server connection actually succeeded.
When there is no PA server running, some older PulseAudio versions
have pa_mainloop_iterate fail instead of setting the connection state
to failed. So, we should also check the connection state after exiting
the loop to ensure it really succeeded before continuing.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit
0766334d04d00f1de6d601a4b052f7dfedcd9c64)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>