Skip to content
Snippets Groups Projects
Commit 4f37cb08 authored by akwizgran's avatar akwizgran
Browse files

The not operator is quite important.

parent 2a293b50
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ class ModemImpl implements Modem, SerialPortEventListener {
}
private void answer() throws IOException {
if(offHook.tryAcquire()) {
if(!offHook.tryAcquire()) {
if(LOG.isLoggable(INFO))
LOG.info("Not answering - call in progress");
return;
......
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