forked from I2P_Developers/i2p.i2p
i2ptunnel: Fix stopping tunnel on bad args when starting,
broken by new state code
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user