lib/nfs/Connection: pass POLLHUP and POLLERR to nfs_service()

This commit is contained in:
Max Kellermann 2020-04-23 15:06:35 +02:00
parent 8ed533acf3
commit 7ded244a61

View File

@ -191,7 +191,9 @@ static constexpr int
events_to_libnfs(unsigned i) noexcept
{
return ((i & SocketMonitor::READ) ? POLLIN : 0) |
((i & SocketMonitor::WRITE) ? POLLOUT : 0);
((i & SocketMonitor::WRITE) ? POLLOUT : 0) |
((i & SocketMonitor::HANGUP) ? POLLHUP : 0) |
((i & SocketMonitor::ERROR) ? POLLERR : 0);
}
NfsConnection::~NfsConnection() noexcept