wl_log("Mask has hangup flag set, client_proc(%s) PID(%d) mask[%x]\n",
client->proc_name, client->pid, mask);
wl_client_destroy(client);
- goto end;
+ return 1;
}
if (mask & WL_EVENT_ERROR) {
destroy_client_with_error(client, "socket error");
- goto end;
+ return 1;
}
if (mask & WL_EVENT_WRITABLE) {
if (len < 0 && errno != EAGAIN) {
destroy_client_with_error(
client, "failed to flush client connection");
- goto end;
+ return 1;
} else if (len >= 0) {
wl_event_source_fd_update(client->source,
WL_EVENT_READABLE);
if (len == 0 || (len < 0 && errno != EAGAIN)) {
destroy_client_with_error(
client, "failed to read client connection");
- goto end;
+ return 1;
}
}
"error in client communication");
}
-end:
return 1;
}