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:14 +0200 |
commit | b5d09d4adb8088719ff494a4281a793717046576 (patch) | |
tree | 537a9fadd88f76f6883cf7a96779218572892f2a /os | |
parent | 0567a6337b84fa045b5732e98203f488274aa2a2 (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.
Diffstat (limited to 'os')
-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 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 |