diff options
Diffstat (limited to 'same-android/src/main/java/com')
-rw-r--r-- | same-android/src/main/java/com/orbekk/discovery/SameService.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/same-android/src/main/java/com/orbekk/discovery/SameService.java b/same-android/src/main/java/com/orbekk/discovery/SameService.java index 68a6c0b..19df9e3 100644 --- a/same-android/src/main/java/com/orbekk/discovery/SameService.java +++ b/same-android/src/main/java/com/orbekk/discovery/SameService.java @@ -60,21 +60,17 @@ public class SameService extends Service { discoveryThread.start(); } } - new Thread() { - @Override public void run() { - new MasterApp().run(PORT+1); - } - }.start(); } private void sendBroadcastDiscovery() { - byte[] data = "Discover".getBytes(); + String message = "Discover " + (PORT + 2); + byte[] data = message.getBytes(); new Broadcaster(this).sendBroadcast(data, PORT); } private void joinNetwork() { sendBroadcastDiscovery(); - new ClientApp().run(PORT+2, "ClientNetwork", null); + // new ClientApp().run(PORT+2, "ClientNetwork", null); } @Override |