diff options
author | Max Kellermann <max@duempel.org> | 2015-01-06 12:54:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-06 12:54:46 +0100 |
commit | 674d14879ff638e9ed34ef7d8557f2aa33b5e204 (patch) | |
tree | 31c2fa65808b08d14021b265ab9ce9b4bcd4e2f1 /src/input/AsyncInputStream.cxx | |
parent | 81df45a893e8ac459ce10f0514058003027c0830 (diff) | |
parent | 37e9010887783c307355f3144786ed72e8a973b0 (diff) | |
download | mpd-674d14879ff638e9ed34ef7d8557f2aa33b5e204.tar.gz mpd-674d14879ff638e9ed34ef7d8557f2aa33b5e204.tar.xz mpd-674d14879ff638e9ed34ef7d8557f2aa33b5e204.zip |
Merge branch 'v0.19.x'
Diffstat (limited to '')
-rw-r--r-- | src/input/AsyncInputStream.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/AsyncInputStream.cxx b/src/input/AsyncInputStream.cxx index 3bc281c43..68cb8ff68 100644 --- a/src/input/AsyncInputStream.cxx +++ b/src/input/AsyncInputStream.cxx @@ -160,6 +160,11 @@ AsyncInputStream::SeekDone() assert(io_thread_inside()); assert(IsSeekPending()); + /* we may have reached end-of-file previously, and the + connection may have been closed already; however after + seeking successfully, the connection must be alive again */ + open = true; + seek_state = SeekState::NONE; cond.broadcast(); } |