Commit d0844ef5 authored by Stephen's avatar Stephen
Browse files

Fixed server

parent dc2418fa
......@@ -247,10 +247,10 @@ public class TCPServer implements Runnable {
while(true) {
int port = 6790;
try {
// Menunggu koneksi dari tracker
serverTrackerSocket = new ServerSocket(port);
while(true) {
// Menunggu koneksi dari tracker
System.out.println("Waiting for tracker to connect..");
serverTrackerSocket = new ServerSocket(port);
trackerSocket = serverTrackerSocket.accept();
System.out.println("Tracker connected!");
......
Supports Markdown
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