diff --git a/out/artifacts/Java_Talk/Java-Talk.jar b/out/artifacts/Java_Talk/Java-Talk.jar index 99d8f3b..4fe5fe8 100644 Binary files a/out/artifacts/Java_Talk/Java-Talk.jar and b/out/artifacts/Java_Talk/Java-Talk.jar differ diff --git "a/out/artifacts/Java_Talk/\346\226\260\345\273\272 \346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/out/artifacts/Java_Talk/\346\226\260\345\273\272 \346\226\207\346\234\254\346\226\207\346\241\243.txt" deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/java/top/c0r3/talk/client/client.java b/src/main/java/top/c0r3/talk/client/client.java index b7df612..9fbe69d 100644 --- a/src/main/java/top/c0r3/talk/client/client.java +++ b/src/main/java/top/c0r3/talk/client/client.java @@ -46,9 +46,8 @@ public void Init() { RunningMode = 1; } } - try{ + try(Socket s = new Socket(ConnectTo.ServerIP, ConnectTo.ServerPort)){ //连接到对方 - Socket s = new Socket(ConnectTo.ServerIP, ConnectTo.ServerPort); PrintWriter out = new PrintWriter(s.getOutputStream(), true); BufferedReader consoleInput = new BufferedReader(new InputStreamReader(System.in)); //发送自己的服务端信息