[Spice-commits] server/reds.c

Alon Levy alon at kemper.freedesktop.org
Tue Aug 31 02:10:00 PDT 2010

 server/reds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 40232f00abdbfaa31801c6c13493e0261898919e
Author: Alon Levy <alevy at redhat.com>
Date:   Wed Aug 25 13:34:41 2010 +0300

    server: bugfix - make vdi_port_write_retry reiterate if write_queue still not empty
    The vdi_port_write_timer_started flag was not being reset, which prevented
    another vdi_port_write_timer_start from actually starting the timer. Fix
    is to change order of lines. This happens in the callback of the timer, so
    no chance of double timer set.

diff --git a/server/reds.c b/server/reds.c
index b9cc87b..a4f3aa1 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1143,8 +1143,8 @@ static void vdi_port_write_timer_start()
 static void vdi_port_write_retry()
-    write_to_vdi_port();
     reds->vdi_port_write_timer_started = FALSE;
+    write_to_vdi_port();
 static int write_to_vdi_port()

More information about the Spice-commits mailing list