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:
Rich Coe 2007-12-05 19:31:07 +00:00 committed by Daniel Stone
parent a8e27a108a
commit d8b2cad377

View File

@ -1059,7 +1059,8 @@ CheckConnections(void)
FD_SET(curclient, &tmask);
r = Select (curclient + 1, &tmask, NULL, NULL, &notime);
if (r < 0)
CloseDownClient(clients[ConnectionTranslation[curclient]]);
if (ConnectionTranslation[curclient] > 0)
CloseDownClient(clients[ConnectionTranslation[curclient]]);
mask &= ~((fd_mask)1 << curoff);
}
}