mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
CheckConnections: don't close down the server client (bug #7876)
When an appgroup is shutting down, the list of clients can change, so make sure we're not trying to shut the server down.
This commit is contained in:
@@ -1045,7 +1045,7 @@ CheckConnections(void)
|
||||
FD_ZERO(&tmask);
|
||||
FD_SET(curclient, &tmask);
|
||||
r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime);
|
||||
if (r < 0)
|
||||
if (r < 0 && GetConnectionTranslation(curclient) > 0)
|
||||
CloseDownClient(clients[GetConnectionTranslation(curclient)]);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user