Skip to content

Commit

Permalink
0.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Immueggpain authored and Immueggpain committed Dec 5, 2019
1 parent e452c8f commit 7025b88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.immueggpain</groupId>
<artifactId>bettermultiplayer</artifactId>
<version>0.3.8</version>
<version>0.3.9</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ public Void call() throws Exception {
// start ovpn
startOvpnProcess(Launcher.LOCAL_PORT);

recvOvpnThread.join();
recvServerThread.join();
// no need to join, if ovpn process exits, we exit too.
// recvOvpnThread.join();
// recvServerThread.join();

return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ private void recv_thread(int listen_port) {
p.setData(recvBuf);
socket.receive(p);
InetSocketAddress saddr = (InetSocketAddress) p.getSocketAddress();
System.out.println("recv from " + saddr);
updatePlayerInfo(saddr, System.currentTimeMillis());
broadcastPacket(saddr, p);
}
Expand Down Expand Up @@ -101,6 +102,7 @@ private void broadcastPacket(InetSocketAddress source, DatagramPacket p) {
p.setSocketAddress(dest);
try {
socket.send(p);
System.out.println("send to " + dest);
} catch (IOException e) {
e.printStackTrace();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
version = Launcher.VERSTR, subcommands = { HelpCommand.class, BMPUDPHub.class, BMPPeer.class })
public class Launcher implements Callable<Void> {

public static final String VERSTR = "0.3.8";
public static final String VERSTR = "0.3.9";
public static final int LOCAL_PORT = 2233;
public static final int LOCAL_OVPN_PORT = 1194;

Expand Down

0 comments on commit 7025b88

Please sign in to comment.