[client] properly shutdown on failure to connect to the spice server

This commit is contained in:
Geoffrey McRae 2019-10-26 11:27:05 +11:00
parent 66891aa536
commit 7d6e061ade
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
B1-14-g1d7a2ccf82+1 B1-15-g66891aa536+1

View File

@ -1237,7 +1237,7 @@ int run()
if (!spice_connect(params.spiceHost, params.spicePort, "")) if (!spice_connect(params.spiceHost, params.spicePort, ""))
{ {
DEBUG_ERROR("Failed to connect to spice server"); DEBUG_ERROR("Failed to connect to spice server");
return 0; break;
} }
while(state.running && !spice_ready()) while(state.running && !spice_ready())