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);
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue