mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +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 {
|
||||
if(offHook.tryAcquire()) {
|
||||
if(!offHook.tryAcquire()) {
|
||||
if(LOG.isLoggable(INFO))
|
||||
LOG.info("Not answering - call in progress");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user