Unverified Commit e4f83071 authored by Mohsen's avatar Mohsen Committed by GitHub

Made changes requested by reviewer

add FD value comparison with zero
parent 57f291c4
...@@ -149,7 +149,7 @@ namespace Polling { ...@@ -149,7 +149,7 @@ namespace Polling {
Epoll::~Epoll() Epoll::~Epoll()
{ {
if (epoll_fd > 0) if (epoll_fd >= 0)
{ {
close(epoll_fd); close(epoll_fd);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment