The not operator is quite important.

This commit is contained in:
akwizgran
2012-11-26 21:26:35 +00:00
parent 2a293b5018
commit 4f37cb0837

View File

@@ -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;