From 4757451777dd208f6768314834357c31aaa92771 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nicolas.pope@utu.fi>
Date: Tue, 10 May 2022 21:44:46 +0100
Subject: [PATCH] Remove poll error handling

---
 src/universe.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/universe.cpp b/src/universe.cpp
index 6ecc903..9451545 100644
--- a/src/universe.cpp
+++ b/src/universe.cpp
@@ -306,7 +306,7 @@ socket_t Universe::_setDescriptors() {
 				#ifdef WIN32
 				fdentry.events = POLLIN;
 				#else
-				fdentry.events = POLLIN | POLLERR;
+				fdentry.events = POLLIN; // | POLLERR;
 				#endif
 				fdentry.fd = sock;
 				fdentry.revents = 0;
@@ -330,7 +330,7 @@ socket_t Universe::_setDescriptors() {
 				#ifdef WIN32
 				fdentry.events = POLLIN;
 				#else
-				fdentry.events = POLLIN | POLLERR;
+				fdentry.events = POLLIN; // | POLLERR;
 				#endif
 				fdentry.fd = sock;
 				fdentry.revents = 0;
@@ -569,14 +569,14 @@ void Universe::_run() {
 
 				const auto &fdstruct = impl_->pollfds[impl_->idMap[sock]];
 
-				if (fdstruct.revents & POLLERR) {
+				/*if (fdstruct.revents & POLLERR) {
 					if (s->socketError()) {
 						//lk.unlock();
 						s->close();
 						//lk.lock();
 						continue;  // No point in reading data...
 					}
-				}
+				}*/
 				//If message received from this client then deal with it
 				if (fdstruct.revents & POLLIN) {
 					//lk.unlock();
-- 
GitLab