fix issue with ipmapping when not clicking abort (didnt test 😎 )

This commit is contained in:
sirjonasxx 2020-05-16 01:46:49 +02:00
parent 2470e9b21d
commit adbf7eff3f
2 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,8 @@ public class RawIpProxyProvider extends ProxyProvider {
stateSetter.setState(HState.PREPARING);
proxy = new HProxy(input_host, input_host, input_port, input_port, "0.0.0.0");
maybeRemoveMapping();
if (!onBeforeIpMapping()) {
stateSetter.setState(HState.NOT_CONNECTED);
return;

View File

@ -173,5 +173,10 @@ public class ConnectionController extends SubForm {
getHConnection().abort();
}
}
@Override
protected void onExit() {
getHConnection().abort();
}
}