The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

android/Client: Start IPC process in thread.

+15 -8
+15 -8
src/xrt/ipc/android/src/main/java/org/freedesktop/monado/ipc/Client.java
··· 249 249 handleFailure(); 250 250 return; 251 251 } 252 - try { 253 - monado.connect(theirs); 254 - } catch (RemoteException e) { 255 - e.printStackTrace(); 256 - Log.e(TAG, "could not call IMonado.connect: " + e.toString()); 257 - handleFailure(); 258 - return; 259 - } 252 + 253 + Thread thread = new Thread(() -> { 254 + try { 255 + while(true) { 256 + monado.connect(theirs); 257 + } 258 + } catch (RemoteException e) { 259 + e.printStackTrace(); 260 + Log.e(TAG, "could not call IMonado.connect: " + e.toString()); 261 + handleFailure(); 262 + } 263 + }); 264 + thread.start(); 265 + 260 266 synchronized (connectSync) { 267 + Log.e(TAG, String.format("Notifing connectSync with fd %d", ours.getFd())); 261 268 fd = ours; 262 269 connectSync.notify(); 263 270 }