mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Moved callback initialisation from start() to constructor so it can be
accessed outside the lock.
This commit is contained in:
@@ -11,6 +11,7 @@ import java.util.concurrent.Executor;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.TransportId;
|
||||
import net.sf.briar.api.transport.stream.StreamTransportCallback;
|
||||
|
||||
class SimpleSocketPlugin extends SocketPlugin {
|
||||
|
||||
@@ -20,8 +21,9 @@ class SimpleSocketPlugin extends SocketPlugin {
|
||||
|
||||
private final long pollingInterval;
|
||||
|
||||
SimpleSocketPlugin(Executor executor, long pollingInterval) {
|
||||
super(executor);
|
||||
SimpleSocketPlugin(Executor executor, StreamTransportCallback callback,
|
||||
long pollingInterval) {
|
||||
super(executor, callback);
|
||||
this.pollingInterval = pollingInterval;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user