Commit 1c719b91 authored by Nicolas Gilmard's avatar Nicolas Gilmard

Fix issue #21

Redundant code
parent 4e8f70c0
......@@ -75,15 +75,8 @@ public class TcpServer extends ServerAdapter {
*/
@Override
public void closeServer() throws IOException {
if (outputStream != null) {
outputStream.close();
}
if (inputStream != null) {
inputStream.close();
}
if (client != null) {
client.close();
}
closeClient();
if (server != null) {
server.close();
}
......@@ -106,4 +99,5 @@ public class TcpServer extends ServerAdapter {
client.close();
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment