Unverified Commit 91f39ec2 authored by Mohsen's avatar Mohsen Committed by GitHub

Made changes requested by reviewer

add FD value comparison with zero & Set FD value to -1
parent e4f83071
......@@ -96,10 +96,10 @@ Listener::~Listener() {
if (acceptThread.joinable())
acceptThread.join();
if (listen_fd > 0)
if (listen_fd >= 0)
{
close(listen_fd);
listen_fd = 0;
listen_fd = -1;
}
#ifdef PISTACHE_USE_SSL
if (this->useSSL_)
......
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