i2ptunnel: Fix stopping tunnel on bad args when starting,

broken by new state code
This commit is contained in:
zzz
2015-04-03 23:46:24 +00:00
parent edb614d970
commit fcec43b7ca
3 changed files with 6 additions and 2 deletions

View File

@ -580,7 +580,7 @@ public class TunnelController implements Logging {
*/
public void stopTunnel() {
synchronized (this) {
if (_state != TunnelState.RUNNING)
if (_state != TunnelState.STARTING && _state != TunnelState.RUNNING)
return;
changeState(TunnelState.STOPPING);
}