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.
This commit is contained in:
Alon Levy 2010-08-25 13:34:41 +03:00
parent 18466b8b55
commit 40232f00ab

View File

@ -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()