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);
}
try {
message.wait(5000);
} catch (InterruptedException e) {
aapsLogger.error("sendMessage InterruptedException", e);
synchronized (message) {
try {
message.wait(5000);
} catch (InterruptedException e) {
aapsLogger.error("sendMessage InterruptedException", e);
}
}
SystemClock.sleep(200);