summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Coe <Richard.Coe@med.ge.com>2006-11-08 18:10:14 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-11-08 18:10:40 +0200
commit22bccea8dcf332bf0077440b76daf6703da42da2 (patch)
treea8424922057d05b3616ee9eb715e280a84b412bd
parentbe91a981dfbc4ea9e6f1c47fafdec3132ca09923 (diff)
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. (cherry picked from b5d09d4adb8088719ff494a4281a793717046576 commit)
-rw-r--r--os/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/connection.c b/os/connection.c
index daad2ac8a..96ad11921 100644
--- a/os/connection.c
+++ b/os/connection.c
@@ -1019,7 +1019,7 @@ CheckConnections(void)
FD_ZERO(&tmask);
FD_SET(curclient, &tmask);
r = Select (curclient + 1, &tmask, NULL, NULL, &notime);
- if (r < 0)
+ if (r < 0 && GetConnectionTranslation(curclient) > 0)
CloseDownClient(clients[GetConnectionTranslation(curclient)]);
}
#endif