DanaR: fix message locking
This commit is contained in:
parent
f16229c4ed
commit
9eac225255
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue