changeset 546:40c27081958a

Net: fix epoll
author David Demelier <markand@malikania.fr>
date Tue, 14 Jun 2016 17:04:25 +0200
parents c0bdb6c091bc
children ecf5fb9319da
files modules/net/net.hpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/net/net.hpp	Tue Jun 14 16:59:09 2016 +0200
+++ b/modules/net/net.hpp	Tue Jun 14 17:04:25 2016 +0200
@@ -3355,9 +3355,9 @@
 		std::vector<ListenerStatus> result;
 
 		if (ret == 0)
-			throw Error(Error::Timeout, "epoll_wait", std::strerror(ETIMEDOUT));
+			throw TimeoutError();
 		if (ret < 0)
-			throw Error(Error::System, "epoll_wait");
+			throw Error();
 
 		for (int i = 0; i < ret; ++i)
 			result.push_back(ListenerStatus{m_events[i].data.fd, toCondition(m_events[i].events)});