Live upgrade: Only save clients with an FD when going down.

* UDP corepeers do not have FDs, and do not need to be live upgraded.
This commit is contained in:
Heikki Hannikainen 2014-01-05 13:36:36 +02:00
parent 3bf7431e37
commit 4e1c799608
1 changed files with 1 additions and 1 deletions

View File

@ -1815,7 +1815,7 @@ void worker_thread(struct worker_t *self)
}
#endif
/* collect client state first before closing or freeing anything */
if (worker_shutdown_clients) {
if (worker_shutdown_clients && c->fd >= 0) {
cJSON *jc = worker_client_json(c, 1);
cJSON_AddItemToArray(worker_shutdown_clients, jc);
}