ipc/android: Remove old workaround

This commit is contained in:
Ryan Pavlik 2021-02-22 17:44:15 -06:00
parent 01fbbc4ed5
commit ccf6ac4b94
2 changed files with 12 additions and 14 deletions

View file

@ -0,0 +1,3 @@
---
---
More improvements to the Android port.

View file

@ -250,21 +250,16 @@ public class Client implements ServiceConnection {
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();
try {
monado.connect(theirs);
} catch (RemoteException e) {
e.printStackTrace();
Log.e(TAG, "could not connect to service: " + e.toString());
handleFailure();
return;
}
synchronized (connectSync) {
Log.e(TAG, String.format("Notifing connectSync with fd %d", ours.getFd()));
Log.e(TAG, String.format("Notifying connectSync with fd %d", ours.getFd()));
fd = ours;
connectSync.notify();
}