diff options
author | Rich Coe <Richard.Coe@med.ge.com> | 2006-11-08 18:10:14 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-11-08 18:10:40 +0200 |
commit | 22bccea8dcf332bf0077440b76daf6703da42da2 (patch) | |
tree | a8424922057d05b3616ee9eb715e280a84b412bd | |
parent | be91a981dfbc4ea9e6f1c47fafdec3132ca09923 (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.c | 2 |
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, ¬ime); - if (r < 0) + if (r < 0 && GetConnectionTranslation(curclient) > 0) CloseDownClient(clients[GetConnectionTranslation(curclient)]); } #endif |