input/curl: wake up client thread after seek to end of file
Call SeekDone() to avoid the freeze bug.
This commit is contained in:
parent
904f83cd85
commit
c3fc84de12
1
NEWS
1
NEWS
|
@ -1,6 +1,7 @@
|
|||
ver 0.20.1 (not yet released)
|
||||
* input
|
||||
- curl: fix crash bug
|
||||
- curl: fix freeze bug
|
||||
* decoder
|
||||
- wavpack: fix crash bug
|
||||
* storage
|
||||
|
|
|
@ -385,11 +385,13 @@ CurlInputStream::SeekInternal(offset_type new_offset)
|
|||
FreeEasy();
|
||||
|
||||
offset = new_offset;
|
||||
if (offset == size)
|
||||
if (offset == size) {
|
||||
/* seek to EOF: simulate empty result; avoid
|
||||
triggering a "416 Requested Range Not Satisfiable"
|
||||
response */
|
||||
SeekDone();
|
||||
return;
|
||||
}
|
||||
|
||||
InitEasy();
|
||||
|
||||
|
|
Loading…
Reference in New Issue