[TEST] Check if worker if null to prevent NPE on double stopping
This commit is contained in:
parent
28489cee45
commit
8aed9ee46f
|
@ -72,6 +72,9 @@ public class SlowClusterStateProcessing extends SingleNodeDisruption {
|
|||
|
||||
@Override
|
||||
public void stopDisrupting() {
|
||||
if (worker == null) {
|
||||
return;
|
||||
}
|
||||
disrupting = false;
|
||||
try {
|
||||
worker.join(2 * (intervalBetweenDelaysMax + delayDurationMax));
|
||||
|
|
Loading…
Reference in New Issue