Reverted communication style to old method

This commit is contained in:
Obique PSWG
2017-11-20 10:45:12 -06:00
parent 2b5821fd3d
commit 8ea2d24574
2 changed files with 3 additions and 3 deletions

View File

@@ -105,8 +105,8 @@ public class ServerConnectionService extends Service {
public ConnectionThread(HolocoreSocket connection) {
this.connection = connection;
this.lastHeartbeat = new AtomicLong(0);
this.thread = new PswgBasicThread("server-connection", () -> run());
this.heartbeatThread = new PswgBasicScheduledThread("server-heartbeat", () -> heartbeat());
this.thread = new PswgBasicThread("server-connection", this::run);
this.heartbeatThread = new PswgBasicScheduledThread("server-heartbeat", this::heartbeat);
this.outQueue = new LinkedList<>();
this.recvIntentChain = null;
}