| Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| index 5b2948dfec31367eac7ea807fb43b75fa684ea90..e5d187f873dcb5144e5c63e7e7fa6da81b8b370c 100644
|
| --- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| +++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| @@ -1261,7 +1261,10 @@ class Transaction extends EventTarget native "IDBTransaction" {
|
| });
|
|
|
| this.onAbort.first.then((e) {
|
| - completer.completeError(e);
|
| + // Avoid completing twice if an error occurs.
|
| + if (!completer.isCompleted) {
|
| + completer.completeError(e);
|
| + }
|
| });
|
|
|
| return completer.future;
|
|
|