Skip to content
Snippets Groups Projects
Commit 4305b9d0 authored by Elrabu's avatar Elrabu
Browse files

Fix: Fixed SocketException on connection reset.

parent cdd3ed5c
No related branches found
No related tags found
2 merge requests!35Update: Added more Stuff to be transported over the server.,!2Merge of Multiplayer Feature into development branch
......@@ -8,7 +8,7 @@ public class ConnectionHandling {
public static void main(String[] args) throws IOException, InterruptedException {
Client client = new Client();
client.startConnection("192.168.0.105", 4444);
for (int i = 0; i < 10; i++){
for (int i = 1; i < 3; i++){
int x = client.sendX(1+i);
System.out.println(x);
......
......@@ -63,7 +63,7 @@ public class Server {
System.out.println("Sent response to client: " + inputLine);
}
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}, 0, 250, TimeUnit.MILLISECONDS);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment