OS: Connection: Don't shut down disappeared clients (bug #7876)
If a client disappears in the middle of CheckConnections (presumably because its appgroup leader disappears), then don't attempt to shut it down a second time, when it's already vanished.
This commit is contained in:
parent
a8e27a108a
commit
d8b2cad377
|
@ -1059,7 +1059,8 @@ CheckConnections(void)
|
||||||
FD_SET(curclient, &tmask);
|
FD_SET(curclient, &tmask);
|
||||||
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime);
|
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
CloseDownClient(clients[ConnectionTranslation[curclient]]);
|
if (ConnectionTranslation[curclient] > 0)
|
||||||
|
CloseDownClient(clients[ConnectionTranslation[curclient]]);
|
||||||
mask &= ~((fd_mask)1 << curoff);
|
mask &= ~((fd_mask)1 << curoff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user