mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-04 13:47:50 +00:00
android/Client: Start IPC process in thread.
This commit is contained in:
parent
373a3096a9
commit
db95b34e6c
|
@ -249,15 +249,22 @@ public class Client implements ServiceConnection {
|
|||
handleFailure();
|
||||
return;
|
||||
}
|
||||
try {
|
||||
monado.connect(theirs);
|
||||
} catch (RemoteException e) {
|
||||
e.printStackTrace();
|
||||
Log.e(TAG, "could not call IMonado.connect: " + e.toString());
|
||||
handleFailure();
|
||||
return;
|
||||
}
|
||||
|
||||
Thread thread = new Thread(() -> {
|
||||
try {
|
||||
while(true) {
|
||||
monado.connect(theirs);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
e.printStackTrace();
|
||||
Log.e(TAG, "could not call IMonado.connect: " + e.toString());
|
||||
handleFailure();
|
||||
}
|
||||
});
|
||||
thread.start();
|
||||
|
||||
synchronized (connectSync) {
|
||||
Log.e(TAG, String.format("Notifing connectSync with fd %d", ours.getFd()));
|
||||
fd = ours;
|
||||
connectSync.notify();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue