| Index: tools/dom/templates/html/impl/impl_IDBTransaction.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_IDBTransaction.darttemplate b/tools/dom/templates/html/impl/impl_IDBTransaction.darttemplate
|
| index 180b2b0555e9976f73af7fc64411c9bce45e9350..39133b01708628ea7c14657af039c96d10a215e3 100644
|
| --- a/tools/dom/templates/html/impl/impl_IDBTransaction.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_IDBTransaction.darttemplate
|
| @@ -25,7 +25,10 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| });
|
|
|
| this.onAbort.first.then((e) {
|
| - completer.completeError(e);
|
| + // Avoid completing twice if an error occurs.
|
| + if (!completer.isCompleted) {
|
| + completer.completeError(e);
|
| + }
|
| });
|
|
|
| return completer.future;
|
|
|