ipc/server_process: Don't init listen socket and epoll on Android.

As the equivalent is already done in Java.
This commit is contained in:
Lubosz Sarnecki 2020-11-25 14:09:37 +01:00
parent 3202922ce7
commit baa68fac4f

View file

@ -557,6 +557,7 @@ init_all(struct ipc_server *s)
return ret; return ret;
} }
#ifndef XRT_OS_ANDROID
ret = init_listen_socket(s); ret = init_listen_socket(s);
if (ret < 0) { if (ret < 0) {
teardown_all(s); teardown_all(s);
@ -568,6 +569,7 @@ init_all(struct ipc_server *s)
teardown_all(s); teardown_all(s);
return ret; return ret;
} }
#endif
// Init all of the render riming helpers. // Init all of the render riming helpers.
for (size_t i = 0; i < ARRAY_SIZE(s->threads); i++) { for (size_t i = 0; i < ARRAY_SIZE(s->threads); i++) {
@ -1019,8 +1021,10 @@ main_loop(struct ipc_server *s)
xrt_comp_layer_commit(xc, frame_id); xrt_comp_layer_commit(xc, frame_id);
#ifndef XRT_OS_ANDROID
// Check polling last, so we know we have valid timing data. // Check polling last, so we know we have valid timing data.
check_epoll(s); check_epoll(s);
#endif
} }
return 0; return 0;