diff options
author | Alon Levy <alevy@redhat.com> | 2010-08-25 13:34:41 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-08-31 12:09:50 +0300 |
commit | 40232f00abdbfaa31801c6c13493e0261898919e (patch) | |
tree | 2987296aa313524c8c4e53678add24700a83cd64 | |
parent | 18466b8b55c59837cbfe83d6ceb5a0020fd9c2b2 (diff) | |
download | spice-40232f00abdbfaa31801c6c13493e0261898919e.tar.gz spice-40232f00abdbfaa31801c6c13493e0261898919e.tar.xz spice-40232f00abdbfaa31801c6c13493e0261898919e.zip |
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.
-rw-r--r-- | server/reds.c | 2 |
1 files changed, 1 insertions, 1 deletions
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() |