diff --git a/app/src/main/java/lightcontainer/domains/server/UnicastServerListener.java b/app/src/main/java/lightcontainer/domains/server/UnicastServerListener.java index 39fc2ab..a12b5d0 100644 --- a/app/src/main/java/lightcontainer/domains/server/UnicastServerListener.java +++ b/app/src/main/java/lightcontainer/domains/server/UnicastServerListener.java @@ -41,12 +41,9 @@ public class UnicastServerListener implements Runnable { public void run() { try { // Allow looping in the loop and create a socket server - SSLServerSocketFactory sslserversocketfactory = (SSLServerSocketFactory) SSLServerSocketFactory - .getDefault(); - SSLServerSocket sslserversocket = (SSLServerSocket) sslserversocketfactory - .createServerSocket(this.server_port); + SSLServerSocketFactory sslserversocketfactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); + this.server = sslserversocketfactory.createServerSocket(this.server_port); this.server_run = true; - this.server = sslserversocket; while (this.server_run) { // Accepting connection requests (blocking) Socket client = this.server.accept();