From 16a07bc2018602c6225ac47c33c6e9f42789934b Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Fri, 17 May 2019 11:56:30 +0200
Subject: [PATCH] input/buffering: remove obsolete thread wakeup

The thread will always attempt to read more data since commit
2cf6b776276b4e09784449bd97fe71af61bb5a1e, so we don't need to tell it
to continue.
---
 src/input/BufferingInputStream.cxx | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/input/BufferingInputStream.cxx b/src/input/BufferingInputStream.cxx
index 246f911f9..50467e844 100644
--- a/src/input/BufferingInputStream.cxx
+++ b/src/input/BufferingInputStream.cxx
@@ -102,12 +102,6 @@ BufferingInputStream::Read(std::unique_lock<Mutex> &lock, void *ptr, size_t s)
 			size_t nbytes = std::min(s, r.defined_buffer.size);
 			memcpy(ptr, r.defined_buffer.data, nbytes);
 			offset += nbytes;
-
-			if (!IsAvailable()) {
-				/* wake up the sleeping thread */
-				wake_cond.notify_all();
-			}
-
 			return nbytes;
 		}