mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
Allow the modem to respond OK more than once.
This commit is contained in:
@@ -188,9 +188,8 @@ class ModemImpl implements Modem, WriteHandler, SerialPortEventListener {
|
|||||||
return;
|
return;
|
||||||
} else if(s.equals("OK")) {
|
} else if(s.equals("OK")) {
|
||||||
synchronized(initialised) {
|
synchronized(initialised) {
|
||||||
if(initialised.getAndSet(true))
|
if(!initialised.getAndSet(true))
|
||||||
throw new IOException("Initialised twice");
|
initialised.notifyAll();
|
||||||
initialised.notifyAll();
|
|
||||||
}
|
}
|
||||||
} else if(s.equals("RING")) {
|
} else if(s.equals("RING")) {
|
||||||
executor.execute(new Runnable() {
|
executor.execute(new Runnable() {
|
||||||
|
|||||||
Reference in New Issue
Block a user