[spice] prepare spice for external usage

This commit is contained in:
Geoffrey McRae
2020-01-19 06:51:21 +11:00
parent e6154e685f
commit 4d0f019ad5
5 changed files with 11 additions and 10 deletions

View File

@@ -464,7 +464,7 @@ static int frameThread(void * unused)
int spiceThread(void * arg)
{
while(state.running)
if (!spice_process())
if (!spice_process(1000))
{
if (state.running)
{
@@ -1215,7 +1215,7 @@ static int lg_run()
}
while(state.running && !spice_ready())
if (!spice_process())
if (!spice_process(1000))
{
state.running = false;
DEBUG_ERROR("Failed to process spice messages");