fix warning

This commit is contained in:
js 2020-04-10 16:19:54 +02:00
parent 13ccc39f14
commit 27c4fcc563

View File

@ -57,14 +57,6 @@ public class ClientP2Pgui {
*/ */
public ClientP2Pgui(String hostnameServer, int portServer, String hostnameTracker, int portTracker, String protocolP2P) { public ClientP2Pgui(String hostnameServer, int portServer, String hostnameTracker, int portTracker, String protocolP2P) {
if (directories == null && loggerServer == null && loggerClient == null) {
directories = new Directories("P2P_JAVA_PROJECT_" + server.getPort());
directories.createSubdir(logDir);
loggerServer = new Logger(directories.getDataHomeDirectory() + logDir + "server.log", DEBUG);
loggerClient = new Logger(directories.getDataHomeDirectory() + logDir + "client.log", DEBUG);
directories.createSubdir(partsDir);
}
this.hostnameServer = hostnameServer; this.hostnameServer = hostnameServer;
this.hostnameTracker = hostnameTracker; this.hostnameTracker = hostnameTracker;
this.portServer = portServer; this.portServer = portServer;