From b5d09d4adb8088719ff494a4281a793717046576 Mon Sep 17 00:00:00 2001 From: Rich Coe Date: Wed, 8 Nov 2006 18:10:14 +0200 Subject: [PATCH] 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. --- os/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/connection.c b/os/connection.c index 95c5500be..100f1e522 100644 --- a/os/connection.c +++ b/os/connection.c @@ -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