mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Removed unnecessary synchronization.
This commit is contained in:
@@ -80,13 +80,11 @@ class ModemPlugin implements DuplexPlugin, Modem.Callback {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Synchronized to avoid a race condition with resetModem()
|
||||
public synchronized void stop() {
|
||||
public void stop() {
|
||||
running = false;
|
||||
}
|
||||
|
||||
// Synchronized to avoid a race condition with stop()
|
||||
private synchronized boolean resetModem() {
|
||||
private boolean resetModem() {
|
||||
if(!running) return false;
|
||||
for(String portName : SerialPortList.getPortNames()) {
|
||||
modem = modemFactory.createModem(this, portName);
|
||||
|
||||
Reference in New Issue
Block a user