mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 11:15:51 +00:00
Orchid: fix NPE when unbuilt circuit is closed
This commit is contained in:
parent
50ad0e7666
commit
887d6b0330
@ -229,7 +229,10 @@ public abstract class CircuitImpl implements Circuit, DashboardRenderable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void destroyCircuit() {
|
public void destroyCircuit() {
|
||||||
io.destroyCircuit();
|
// We might not have bound this circuit yet
|
||||||
|
if (io != null) {
|
||||||
|
io.destroyCircuit();
|
||||||
|
}
|
||||||
circuitManager.removeActiveCircuit(this);
|
circuitManager.removeActiveCircuit(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user