Skip to content

Commit

Permalink
fs/FilteredSocket: remove obsolete assertion workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Aug 10, 2023
1 parent 2013af2 commit c7600f2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/fs/FilteredSocket.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,6 @@ public:
bool InternalRead() noexcept {
assert(filter != nullptr);

#ifndef NDEBUG
if (!base.IsConnected() && base.GetAvailable() == 0)
/* work around assertion failure in
BufferedSocket::TryRead2() */
return false;
#endif

return base.Read();
}

Expand Down

0 comments on commit c7600f2

Please sign in to comment.