mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
ipc/android: Remove old workaround
This commit is contained in:
parent
01fbbc4ed5
commit
ccf6ac4b94
3
doc/changes/misc_features/mr.676.md
Normal file
3
doc/changes/misc_features/mr.676.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
---
|
||||
More improvements to the Android port.
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue