aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_gtk.c
diff options
context:
space:
mode:
authorTimo Wischer <twischer@de.adit-jv.com>2020-03-26 09:15:18 +0100
committerDavid Robillard <d@drobilla.net>2020-04-05 13:58:21 +0200
commit411f0e67f495fb436ce13ba12c63d7cf874aabd7 (patch)
treeec5af60525a1d4fb3562f4b1a820742eaf6a6da4 /src/jalv_gtk.c
parent6721ea54b752b183c45bac83d705f7de40e74fd1 (diff)
downloadjalv-411f0e67f495fb436ce13ba12c63d7cf874aabd7.tar.gz
jalv-411f0e67f495fb436ce13ba12c63d7cf874aabd7.tar.bz2
jalv-411f0e67f495fb436ce13ba12c63d7cf874aabd7.zip
worker: Do not read response when not yet available
Without this patch the size of the response might be read successfully but the response will not be read. Therefore the while loop would exit and when entering the next time the size will be read again. But this second read of size will actually already read data from the response. Therefore the response will be corrupted and the response buffer cannot sync again. To avoid this issue it will first be checked if there is enough data available in the ring buffer to read the size and response. If not try again later. Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Diffstat (limited to 'src/jalv_gtk.c')
0 files changed, 0 insertions, 0 deletions