Skip to content

Commit

Permalink
HPCC-32960 review changes
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
  • Loading branch information
jakesmith committed Nov 11, 2024
1 parent 6a66007 commit 3f76392
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions system/jlib/jsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4800,9 +4800,12 @@ class CSocketSelectThread: public CSocketBaseThread
unsigned n=0;
ForEachItemIn(i,items) {
SelectItem &si = items.element(i);
if (!si.del) {
if (si.sock==sock) {
if (!si.del)
{
if (si.sock==sock)
{
si.del = true;
break;
}
else
n++;
Expand Down Expand Up @@ -5524,6 +5527,7 @@ class CSocketEpollThread: public CSocketBaseThread
{
si.del = true;
rm = SOCK_REMOVED;
break;
}
else
n++;
Expand Down Expand Up @@ -5828,7 +5832,7 @@ class CSocketEpollHandler: implements ISocketSelectHandler, public CInterface
addrm |= threads.item(i).add(sock,mode,nfy);
// if both added and removed, we're done
if (((addrm & (SOCK_ADDED | SOCK_REMOVED)) == (SOCK_ADDED | SOCK_REMOVED)) ||
(addrm == SOCK_FAILED))
(addrm & SOCK_FAILED))
return;
}
else if (!(addrm & SOCK_REMOVED))
Expand Down

0 comments on commit 3f76392

Please sign in to comment.