Skip to content

Commit

Permalink
close reader on client disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
lavajuno committed Mar 5, 2024
1 parent 934c20c commit 1f3d552
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.lavajuno.mirrorlog.server;

import java.io.*;
import java.lang.reflect.Array;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketException;
import java.util.Scanner;
Expand Down Expand Up @@ -68,6 +68,7 @@ public void run() {
outToClient.flush();
}
}
inFromClient.close();
socket.close();
outputController.submitEvent(
"Log Server",
Expand Down

0 comments on commit 1f3d552

Please sign in to comment.