Skip to content
Snippets Groups Projects
Commit 4b07e80a authored by Slava Monich's avatar Slava Monich
Browse files

[gbinder] Added couple more looper checks

We must have looper running in order to receive death notifications.
parent 9f7fac40
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,7 @@ gbinder_remote_object_reanimate(
if (gbinder_driver_ping(ipc->driver, reg, self->handle) == 0) {
/* Wow, it's alive! */
self->dead = FALSE;
gbinder_ipc_looper_check(self->ipc); /* For death notifications */
gbinder_driver_acquire(ipc->driver, self->handle);
gbinder_driver_request_death_notification(ipc->driver, self);
}
......@@ -151,6 +152,7 @@ gbinder_remote_object_new(
self->ipc = gbinder_ipc_ref(ipc);
self->handle = handle;
if (!(self->dead = dead)) {
gbinder_ipc_looper_check(self->ipc); /* For death notifications */
gbinder_driver_acquire(ipc->driver, handle);
gbinder_driver_request_death_notification(ipc->driver, self);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment