mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +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;
|
||||
} else if(s.equals("OK")) {
|
||||
synchronized(initialised) {
|
||||
if(initialised.getAndSet(true))
|
||||
throw new IOException("Initialised twice");
|
||||
initialised.notifyAll();
|
||||
if(!initialised.getAndSet(true))
|
||||
initialised.notifyAll();
|
||||
}
|
||||
} else if(s.equals("RING")) {
|
||||
executor.execute(new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user