Skip to content

Commit f8c6cd9

Browse files
author
Sandy W
committed
removed static modifer from socket
1 parent 80cd2de commit f8c6cd9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

client/ClientThread.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class ClientThread extends Thread {
1010
int menuSelection;
1111
String hostName;
12-
private static Socket socket = null;
12+
private Socket socket = null;
1313
int threadNum;
1414

1515
ClientThread(String hostName, int menuSelection, int threadNum) {
@@ -52,8 +52,6 @@ public void run() {
5252
// TODO Auto-generated catch block
5353
e.printStackTrace();
5454
}
55-
out.close();
56-
in.close();
5755
socket.close();
5856

5957
}

0 commit comments

Comments
 (0)