| Index: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
|
| diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
|
| index 34dcf6bb979a12ca536deda4020d0bd2c26bc7e1..10a1313c2e4f10e253e11f9ac33049b4f620ad6b 100644
|
| --- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
|
| +++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
|
| @@ -949,7 +949,10 @@ class Transaction extends EventTarget {
|
| });
|
|
|
| this.onAbort.first.then((e) {
|
| - completer.completeError(e);
|
| + // Avoid completing twice if an error occurs.
|
| + if (!completer.isCompleted) {
|
| + completer.completeError(e);
|
| + }
|
| });
|
|
|
| return completer.future;
|
|
|