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:
parent
3bf7431e37
commit
4e1c799608
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue