]> Git Repo - qemu.git/blobdiff - ui/vnc-jobs.c
spice: fix 32bit build
[qemu.git] / ui / vnc-jobs.c
index 3f3c47b9a51bbfac1887daa1408035a64acaea3b..68f3d773d9576e8a7d077fd71c9e7e44a564eac0 100644 (file)
@@ -252,6 +252,8 @@ static int vnc_worker_thread_loop(VncJobQueue *queue)
 
         if (job->vs->csock == -1) {
             vnc_unlock_display(job->vs->vd);
+            /* Copy persistent encoding data */
+            vnc_async_encoding_end(job->vs, &vs);
             goto disconnected;
         }
 
@@ -278,6 +280,9 @@ static int vnc_worker_thread_loop(VncJobQueue *queue)
         vnc_async_encoding_end(job->vs, &vs);
 
        qemu_bh_schedule(job->vs->bh);
+    }  else {
+        /* Copy persistent encoding data */
+        vnc_async_encoding_end(job->vs, &vs);
     }
     vnc_unlock_output(job->vs);
 
This page took 0.023967 seconds and 4 git commands to generate.