Skip to content
Snippets Groups Projects
Commit ebceba28 authored by bontric's avatar bontric
Browse files

renaming in mailbox service

parent 42e83e85
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -71,6 +71,8 @@ public class MailboxServiceImpl implements MailboxService { ...@@ -71,6 +71,8 @@ public class MailboxServiceImpl implements MailboxService {
if (LOG.isLoggable(INFO)) if (LOG.isLoggable(INFO))
LOG.info("Starting Mailbox Service"); LOG.info("Starting Mailbox Service");
//NOTE/TODO: Only using LAN connections for now
PrivateMailboxFuture = PrivateMailboxFuture =
schedule(new ConnectPrivateMailboxTask(LanTcpConstants.ID, schedule(new ConnectPrivateMailboxTask(LanTcpConstants.ID,
POLLING_INTERVALL), POLLING_INTERVALL),
...@@ -106,11 +108,10 @@ public class MailboxServiceImpl implements MailboxService { ...@@ -106,11 +108,10 @@ public class MailboxServiceImpl implements MailboxService {
@Override @Override
public void run() { public void run() {
// NOTE/TODO: This only establishes a Tor connection for now DuplexPlugin plugin =
DuplexPlugin torPlugin =
(DuplexPlugin) pluginManager.getPlugin(transportId); (DuplexPlugin) pluginManager.getPlugin(transportId);
if (torPlugin == null) { if (plugin == null) {
reschedule(); reschedule();
return; return;
} }
...@@ -147,7 +148,7 @@ public class MailboxServiceImpl implements MailboxService { ...@@ -147,7 +148,7 @@ public class MailboxServiceImpl implements MailboxService {
LOG.info("Connecting to private mailbox"); LOG.info("Connecting to private mailbox");
DuplexTransportConnection mailBoxConn = DuplexTransportConnection mailBoxConn =
torPlugin.createConnection(entry.getValue()); plugin.createConnection(entry.getValue());
if (mailBoxConn != null) if (mailBoxConn != null)
mailboxManager mailboxManager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment