mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +01:00
The not operator is quite important.
This commit is contained in:
@@ -211,7 +211,7 @@ class ModemImpl implements Modem, SerialPortEventListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void answer() throws IOException {
|
private void answer() throws IOException {
|
||||||
if(offHook.tryAcquire()) {
|
if(!offHook.tryAcquire()) {
|
||||||
if(LOG.isLoggable(INFO))
|
if(LOG.isLoggable(INFO))
|
||||||
LOG.info("Not answering - call in progress");
|
LOG.info("Not answering - call in progress");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user