From 40232f00abdbfaa31801c6c13493e0261898919e Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 25 Aug 2010 13:34:41 +0300 Subject: 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. --- server/reds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/reds.c b/server/reds.c index b9cc87bc..a4f3aa11 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() -- cgit