robust removeAllBreakpoints

catch error while open new tab (attach debugger)
Chrome still crashed on speed search in Variable View.
This commit is contained in:
Vladimir Krivosheev
2013-09-18 19:00:49 +02:00
parent bedb5d8995
commit 3f2c72f963
@@ -184,6 +184,16 @@ public class ActionCallback implements Disposable {
myCallbacks.add(callback);
}
@NotNull
public ActionCallback create() {
ActionCallback result = new ActionCallback(myCallbacks.size());
Runnable doneRunnable = result.createSetDoneRunnable();
for (ActionCallback each : myCallbacks) {
each.doWhenDone(doneRunnable).notifyWhenRejected(result);
}
return result;
}
@NotNull
public ActionCallback getWhenProcessed() {
final ActionCallback result = new ActionCallback(myCallbacks.size());