Skip to content
Snippets Groups Projects
Commit 56e7f459 authored by akwizgran's avatar akwizgran
Browse files

Allow the modem to respond OK more than once.

parent c13c01a1
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment