diff --git a/Libraries/LibGUI/GDirectoryModel.cpp b/Libraries/LibGUI/GDirectoryModel.cpp index be68c4dd7e..548e02d1f5 100644 --- a/Libraries/LibGUI/GDirectoryModel.cpp +++ b/Libraries/LibGUI/GDirectoryModel.cpp @@ -319,6 +319,9 @@ void GDirectoryModel::open(const StringView& a_path) m_notifier = make(watch_fd, CNotifier::Event::Read); m_notifier->on_ready_to_read = [this] { update(); + char buffer[32]; + int rc = read(m_notifier->fd(), buffer, sizeof(buffer)); + ASSERT(rc >= 0); }; update(); set_selected_index(index(0, 0));