DanaR: fix message locking

This commit is contained in:
Milos Kozak 2023-08-29 19:21:05 +02:00
parent f16229c4ed
commit 9eac225255

View file

@ -160,10 +160,12 @@ public class SerialIOThread extends Thread {
aapsLogger.error("sendMessage write exception: ", e); aapsLogger.error("sendMessage write exception: ", e);
} }
try { synchronized (message) {
message.wait(5000); try {
} catch (InterruptedException e) { message.wait(5000);
aapsLogger.error("sendMessage InterruptedException", e); } catch (InterruptedException e) {
aapsLogger.error("sendMessage InterruptedException", e);
}
} }
SystemClock.sleep(200); SystemClock.sleep(200);