tunnel field now volatile to ensure other monitoring threads see latest changes

This commit is contained in:
knaccc
2019-01-29 11:32:58 +00:00
parent eb256f87d2
commit 7c315e422c
@@ -75,7 +75,7 @@ public class TunnelControl implements Runnable {
public String dest;
public String host;
public int port;
public I2PTunnel tunnel;
public volatile I2PTunnel tunnel;
public KeyPair keyPair;
public ServerTunnel(String host, int port, KeyPair keyPair, File tunnelControlTempDir) throws Exception {
this.host = host;